Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit events from component wrapper #20

Open
ghost opened this issue Jun 13, 2018 · 2 comments · May be fixed by #21
Open

Inherit events from component wrapper #20

ghost opened this issue Jun 13, 2018 · 2 comments · May be fixed by #21

Comments

@ghost
Copy link

ghost commented Jun 13, 2018

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 ghost linked a pull request Jun 13, 2018 that will close this issue
@AlexandreBonneau AlexandreBonneau self-assigned this Jun 14, 2018
@GTCrais
Copy link

GTCrais commented Feb 21, 2020

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.

@zemkogabor
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants