vuestic-ui
vuestic-ui copied to clipboard
VaSwitch `@input` event doesn't work
Vuestic-ui version: 1.4.6
We have it stated in the docs
but I tried in demo to
<va-switch
v-model="value"
@update:model-value="$vb.log('@update:model-value', value)"
@input="$vb.log('input', $event)"
/>
and @input
event was never getting triggered. It should return native event btw.
Bonus points
- Consider adding change event (is it useful?). Maybe we only need
@change
?
So this issues is about native events. If switch doesn't have input event or something - you don't have to use it.
Likely junk from vue2. Must be removed since we have update:model-value.
@m0ksem Can I work on this issue?
@m0ksem We need to pass native event somehow, and we don't achieve this in @update:model-value
.
So I think we want to pass-through native events with native events for all form components.