mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 11:09:01 +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
|
// sometimes we have to update the position
|
||||||
// because of a loaded images for example
|
// because of a loaded images for example
|
||||||
if (this.options.resizeObserver && ResizeObserver) {
|
if (this.options.resizeObserver && window.ResizeObserver) {
|
||||||
this.resizeObserver = new ResizeObserver(() => {
|
this.resizeObserver = new ResizeObserver(() => {
|
||||||
if (this.isActive) {
|
if (this.isActive) {
|
||||||
this.update(this.editorView)
|
this.update(this.editorView)
|
||||||
|
Loading…
Reference in New Issue
Block a user