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

blur event problem #1421

Closed
yuanhl1994 opened this issue Feb 14, 2022 · 4 comments
Closed

blur event problem #1421

yuanhl1994 opened this issue Feb 14, 2022 · 4 comments
Labels

Comments

@yuanhl1994
Copy link

Hi,Jos
There are two problems with blur event.
First, when i reload page, editor not focus,but click window can trigger editor's blur event.It's not a big problem,but a little confused.
Second,if page has iframe,click iframe doesn't trigger editor's blur event. I wish you can fix this problem.

Many thanks

@josdejong
Copy link
Owner

Thanks for reporting @yuanhl1994 . How can I reproduce the two issues you mention exactly? Can you put together a small demo (for example on https://jsbin.com or https://codesandbox.io)?

@yuanhl1994
Copy link
Author

yuanhl1994 commented Mar 14, 2022

Thanks for reporting @yuanhl1994 . How can I reproduce the two issues you mention exactly? Can you put together a small demo (for example on https://jsbin.com or https://codesandbox.io)?

Thank you for your reply! Here is a example,https://codesandbox.io/s/unruffled-cloud-djz7ci?file=/index.html

if you focus on input,and then click iframe,there will console "blur:input".But if you focus on editor,and then click iframe,nothing will console.

@josdejong
Copy link
Owner

Thanks, that demo is very helpful. So the blur event is not triggering when an iframe gets the focus. I'll create a fix for it.

@josdejong
Copy link
Owner

This issue is fixed now in v9.7.4.

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

No branches or pull requests

2 participants