Replies: 1 comment 3 replies
-
@lozunoff It works okay without any changes for me: https://codepen.io/SimoTod/pen/OJOqXqW |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions