Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix : instanceOf returns false #1273

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

redoC-A2k
Copy link

Related Issues

fixes #1272

Description

I tried to debug the issue , while debuggging I found out that even though splide_list element containing HTMLElement in prototype chain the isHTMLElement was returning false . I compared the two window variables one was iframe and other should be global window , but in grapesjs case the two window variables were same and I think that's why instanceOf might be returning false . When I used window.top instead of window isntanceOf returns true as expected .

@TobiasRoos-Dev
Copy link

@NaotoshiFujita could you already review this pull request? I have a problem which this request would fix. I render for a cms splide in an iframe and this isn't possible for chrome browsers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

isHTMLElement returns false in grapesjs editor (in chrome/edge not in Firefox)
2 participants