We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Originally posted by lozunoff March 5, 2022 Hello!
An issue has been found combining the keyup event, key name, and "once" modifier.
<input x-on:keyup.enter.once="..." />
This example doesn't work.
Presumably the problem is related to the order in which modifiers are processed in the
alpine/packages/alpinejs/src/utils/on.js
Line 66 in ca6ae29
If you move the processing of the "once" modifier higher in the code (up to line 41) - everything is ok. Example:
https://github.com/lozunoff/alpine/blob/88691edde975387eb5b479db4f711527648717ad/packages/alpinejs/src/utils/on.js#L41
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Discussed in #2730
Originally posted by lozunoff March 5, 2022
Hello!
An issue has been found combining the keyup event, key name, and "once" modifier.
<input x-on:keyup.enter.once="..." />
This example doesn't work.
Presumably the problem is related to the order in which modifiers are processed in the
alpine/packages/alpinejs/src/utils/on.js
Line 66 in ca6ae29
If you move the processing of the "once" modifier higher in the code (up to line 41) - everything is ok. Example:
https://github.com/lozunoff/alpine/blob/88691edde975387eb5b479db4f711527648717ad/packages/alpinejs/src/utils/on.js#L41
The text was updated successfully, but these errors were encountered: