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

Save initial value before focus #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ktj
Copy link

@ktj ktj commented Jul 4, 2018

Saving node initial value to variable before focus, so components that clear input on focus work

@ktj
Copy link
Author

ktj commented Jul 16, 2018

Any input? @vitalyq

@vitalyq
Copy link
Owner

vitalyq commented Jul 17, 2018

Thank you for bringing up the issue. There are some problems with this approach. Ideally, we should get rid of this focus event altogether. I was thinking about monkey patching nodeName on the element or even document.documentMode but further testing is needed.

As a quick fix, please restore the value explicitly or make a wrapper function.

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.

None yet

2 participants