Trying to use AlpineJS in Woocommerce checkout. I have input number field with + - indicators to increase value, simplefield code:
<div x-data="{ qty: 1 }">
<i @click="qty = qty > 2 ? qty - 1 : 1" class="icon-left-open"></i>
<input type="number" x-model="qty">
<i @click="qty = qty + 1" class="icon-right-open"></i>
</div>
So the problem is that when the input value changes woocommerce "update cart" button still has a disabled state. I thought this was happing because x-model and 2-way binding don't fire native change/input events?
How to tell woocommerce that value changed?