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

Issue with focus and blur when first renderring #231

Closed
Eyreba opened this issue Feb 24, 2023 · 5 comments
Closed

Issue with focus and blur when first renderring #231

Eyreba opened this issue Feb 24, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@Eyreba
Copy link

Eyreba commented Feb 24, 2023

environment:
Platform: Mac os 13.2
Browser: Chrome 109.0.5414.119
Framework: vue3 + ts

Problem detail:
When first renderring editor, it has auto focused, but when i clicked other doms, it cannot trigger blur event. But it's useful after first blur. Could you please add a prop that could control the editor auto focus or not when thr first time renderring.

@josdejong
Copy link
Owner

Thanks for reporting.

How can I reproduce your issue? In which mode are you opening the editor?

@Eyreba
Copy link
Author

Eyreba commented Feb 24, 2023

Thanks for replying.
I opened the editor with text mode, and just add onBlur event in props, you will find that when the first time you click blank space, it will not trigger the onBlur event. But when you focus and click blank space again, it will trigger onBlur event.

@josdejong josdejong added the bug Something isn't working label Feb 27, 2023
@josdejong
Copy link
Owner

josdejong commented Feb 27, 2023

Thanks. It turned out that the code editor was needlessly grabbing focus when created.

@josdejong
Copy link
Owner

Fix is published now in v0.15.0

@Eyreba
Copy link
Author

Eyreba commented Mar 2, 2023

I'm very thankful for your helping 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants