-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
event
is undefined on hx-vals
with delay
modifier on hx-trigger
#1658
Comments
This might be related to #1103. Once I remove the delay, if I type too fast, the same error comes up. |
I'm curious. Does this happen the same with throttle instead of delay? Throttle sounds like a debounce and should work/feel better for a keyup event where you wouldn’t want a delay at first. But, sure, this does not fix the bug you describe. |
It's a scope issue; within event handlers, an As such, @andryyy , throttle would have access to the |
This error doesn't seem to happen if I use |
Is it fixed by PR 1460? |
Adding a
delay
of seemingly any duration, causes theevent
inhx-vals
to be undefined. Take the following example:event
is defined if I remove thedelay:1s
.The text was updated successfully, but these errors were encountered: