Detect programmatic input changes

Hello,

I’m trying to detect changes to an input field inside livewire component, the issue is that manual changes are detected by livewire but programmatic changes not.
I’m using this:
<input wire:model="date_input" name="start_date" class="datedropper-init form-control single-daterange datedrop" type="text" required="required">
it’s a date modal that is setting value to the input

Do you have any idea how to detect changes?

Thanks

If you’re using AlpineJS, you can set the value of the model with $wire.set('date_input', '2020/10/02').

1 Like