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

Store initialValue before dispatching 'focus' which might reset it #5

Open
holyjak opened this issue Feb 20, 2019 · 0 comments
Open

Comments

@holyjak
Copy link

holyjak commented Feb 20, 2019

I think that node.initialValue should be stored before dispatching focus:

event.initEvent('focus', false, false);

The reason is that the input might have a custom onFocus handler that likely changes the component state -> triggers rerender -> resets the value according to the state.

Thank you!

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

No branches or pull requests

1 participant