Use the resize observer polyfill consistently (#7796)
This commit is contained in:
parent
0cf15d27dc
commit
6793ef33ba
3 changed files with 6 additions and 4 deletions
|
@ -19,9 +19,9 @@ import ResizeObserverEntry from 'resize-observer-polyfill/src/ResizeObserverEntr
|
|||
|
||||
// XXX: resize-observer-polyfill has types that now conflict with typescript's
|
||||
// own DOM types: https://github.com/que-etc/resize-observer-polyfill/issues/80
|
||||
// Using require here rather than import is a horrenous workaround. We should
|
||||
// Using require here rather than import is a horrendous workaround. We should
|
||||
// be able to remove the polyfill once Safari 14 is released.
|
||||
const ResizeObserverPolyfill = require('resize-observer-polyfill'); // eslint-disable-line @typescript-eslint/no-var-requires
|
||||
export const ResizeObserverPolyfill = require('resize-observer-polyfill'); // eslint-disable-line @typescript-eslint/no-var-requires
|
||||
|
||||
export enum UI_EVENTS {
|
||||
Resize = "resize"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue