x-modelable
does not respect a debounced x-model
#2812
Unanswered
mattgreenfield
asked this question in
5. Bugs
Replies: 1 comment 1 reply
-
Relates to #2764 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
x-modelable
within a blade component so that I can have access to thex-model
value and sync with it. This is working correctly.However, if I want to debounce the updates to the
x-model
value, it is not debounced.I've created a demo here https://codesandbox.io/s/alpinejs-playground-eq1i7s?file=/index.html
You'll see that the first range input directly changes
parentval
withx-model.debounce.900="parentval"
and that it is correctly debounced.The second input sets
value
which in turn setsparentval
viax-modelable
. The value is changed instantly, not waiting for the debounce.Beta Was this translation helpful? Give feedback.
All reactions