mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 19:29:02 +08:00
fix check support for resize observer
This commit is contained in:
parent
cd485bba16
commit
99c1f52f5b
@ -28,7 +28,7 @@ class Menu {
|
||||
|
||||
// sometimes we have to update the position
|
||||
// because of a loaded images for example
|
||||
if (this.options.resizeObserver && ResizeObserver) {
|
||||
if (this.options.resizeObserver && window.ResizeObserver) {
|
||||
this.resizeObserver = new ResizeObserver(() => {
|
||||
if (this.isActive) {
|
||||
this.update(this.editorView)
|
||||
|
Loading…
Reference in New Issue
Block a user