vuestic-ui icon indicating copy to clipboard operation
vuestic-ui copied to clipboard

VaSwitch `@input` event doesn't work

Open asvae opened this issue 2 years ago • 3 comments

Vuestic-ui version: 1.4.6 We have it stated in the docs image

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.

asvae avatar Jul 11 '22 11:07 asvae

Likely junk from vue2. Must be removed since we have update:model-value.

m0ksem avatar Jul 11 '22 11:07 m0ksem

@m0ksem Can I work on this issue?

arkmadj avatar Jul 11 '22 13:07 arkmadj

@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.

asvae avatar Jul 11 '22 14:07 asvae