vue-tiny-slider icon indicating copy to clipboard operation
vue-tiny-slider copied to clipboard

Vue 2 don't work with camelCase Events

Open aheiland opened this issue 5 years ago • 2 comments

https://github.com/viktorlarsson/vue-tiny-slider/blob/a0ba40447e76ddfe55e5944d72981ac701ccc54c/src/index.js#L5

the events in the event list will never work because of https://vuejs.org/v2/guide/components-custom-events.html#Event-Names

aheiland avatar Nov 21 '19 13:11 aheiland

hm, looks like it works fine.

<tiny-slider @indexChanged="onSlideIndexChanged">...</tiny-slider>

pySilver avatar Feb 21 '20 21:02 pySilver

yeah so when i have this: <tiny-slider ref="main" v-bind="mainSliderOptions" @indexChanged="onSlideChange"> i get this error in the console: image

and when i have this: <tiny-slider ref="main" v-bind="mainSliderOptions" @index-changed="onSlideChange"> nothing happens.

basically, none of the custom events work at this moment.

gracescharf avatar Nov 12 '20 00:11 gracescharf