vue-autoNumeric icon indicating copy to clipboard operation
vue-autoNumeric copied to clipboard

Inherit events from component wrapper

Open ghost opened this issue 7 years ago • 2 comments

It would be helpful if I could attach events on component and it would respond to them. Right now component emits only "input" event. I would like to attach "blur" and "keyup.enter" events like this: <vue-autonumeric @blur="blurHandeler" @keyup.enter="enterHandeler" />

Vue js can do it with this.$listeners

ghost avatar Jun 13 '18 13:06 ghost

This still (or again?) isn't working for me. Your modified codepen: https://codepen.io/GTCrais/pen/MWwbbZQ?editors=1010

Locally I'm using "vue-autonumeric": "^1.2.6", (i.e. the most recent version at the time of writing this commend) and @blur and @keyup.enter events aren't triggering.

GTCrais avatar Feb 21 '20 17:02 GTCrais

This still (or again?) isn't working for me. Your modified codepen: https://codepen.io/GTCrais/pen/MWwbbZQ?editors=1010

Locally I'm using "vue-autonumeric": "^1.2.6", (i.e. the most recent version at the time of writing this commend) and @blur and @keyup.enter events aren't triggering.

Use native events: @keyup.enter.native. It's work for me.

zemkogabor avatar Jul 13 '21 13:07 zemkogabor