Alpine does not react to setRangeText() on input element #4357
-
I have an input element, and a button that encloses text selected in the input, with three asterisks. It does this using the input's If I type into the input, the bound value is correctly updated and shown in an adjacent paragraph. If I click the button, the input's value is correctly changed, but the bound value is not. Is this by design? And if it is, how can I arrange for the bound value to be updated when the input's value changes? EDIT: I've just found that I can use Here's a cut-down version of the page:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can dispatch an input or change event on the input. That would be the best way. |
Beta Was this translation helpful? Give feedback.
You can dispatch an input or change event on the input. That would be the best way.