-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Trigger 'input' event before 'change' events #4649
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
Conversation
kevin-brown
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear under what cases the input event is fired. Is there a use case for the input event that is not dependent on the change event, or is one basically a copy of the other?
|
|
||
| assert.ok( | ||
| changeTriggered, | ||
| 'The change event should be triggered' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how I feel about enforcing the order of the events within past tests. I can understand adding tests to check that the input event is triggered, and adding tests to ensure that one event is caught before the other, but I don't think that requires you to modify old change-only tests to cover both those cases.
|
Thanks for taking a look at this PR 😄
Let me know how I can be of further assistance |
|
@kevin-brown Is there something else that is blocking this PR from being merged? |
7fc446c to
8f8d97f
Compare
|
I've rebased my branch. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This PR is really simple, and is still valid. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
This PR is really simple, and is still valid. |
|
Please merge this pull request, is simple and adhere to the standards |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Stale bot: 0 |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
8f8d97f to
d8dca5f
Compare
|
Rebased. |
|
Ow come on, merge already!! 👍 |
d8dca5f to
88fa554
Compare
|
Rebased this pull request against the latest dev so the new checks can run. The goal of this is to get it merged in tonight for the next patch release. |
|
Cool, thanks! |
This pull request includes a
The following changes were made
inputevent before triggering achangeeventchangeevent being triggered now look forinputthenchange.While not widely known, the
inputevent is triggered before allchangeevents for inputs and selects (see the spec here)FWIW,
Parsleyrelies on theinputevent, so the current code is causing bad interactions