Skip to content

DateInput DOM events: onBlur fires before onChange #32

Description

@estambakio-sc

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions