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

DateInput DOM events: onBlur fires before onChange #32

Open
estambakio-sc opened this issue Oct 23, 2017 · 0 comments
Open

DateInput DOM events: onBlur fires before onChange #32

estambakio-sc opened this issue Oct 23, 2017 · 0 comments
Assignees
Labels

Comments

@estambakio-sc
Copy link
Contributor

estambakio-sc commented Oct 23, 2017

How to reproduce:

<DateInput value={null} dateFormat="dd/MM/yyyy" onChange={() => console.log('onChange')} onBlur = {() => console.log('onBlur')} disabled={false} showToLeft={false} showToTop={true} />

Check some date and look at browser console log.

Expected behavior: onChange should fire before onBlur.

What's actually happening: onBlur fires first. It breaks a consumer's logic if it depends on idiomatic behavior.

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

3 participants