Buefy: b-input key pressed events

Created on 1 Dec 2017  路  3Comments  路  Source: buefy/buefy

b-input doesnt answer to key events..

i tried @keyup.enter=method

Nothing happened

All 3 comments

@diego-lipinski-de-castro You have to use native modifier. For example @keyup.native.enter.

One important [email protected] does not call a method, it triggers an event, so you must do:

@keyup.native.enter="event => method"

Supporting @keyup.enter in the component would save lots of time for everyone trying to do this for the first time.

@kerbo You're right but you might use @keyup.native.enter="myMethod($event)"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dangminhtruong picture dangminhtruong  路  3Comments

ravenvn picture ravenvn  路  3Comments

sempixel picture sempixel  路  3Comments

akubasa picture akubasa  路  3Comments

dmcbrn picture dmcbrn  路  3Comments