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

fabric.IText: better checks on exitEditing #6138

Merged
merged 2 commits into from
Feb 5, 2020
Merged

Conversation

asturur
Copy link
Member

@asturur asturur commented Feb 5, 2020

It happens to me that i want to exit editing when the hidden textarea loose the focus.
Once that happens, exitEditing will run a blur event, that will again run textEditing, on an object that lost the hiddenTextarea shortly before.

With the code written in this way, the error does not happen.

No functional changes, but is now possible to add an event on the focuslost event on the hiddenTextarea

@asturur asturur merged commit 1f04ab9 into master Feb 5, 2020
@asturur asturur deleted the avoid-onfocuslost-error branch March 9, 2020 00:19
@asturur asturur mentioned this pull request Mar 12, 2020
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.

1 participant