Skip to content
Advertisement

Vue v-model and @keydown in one element

JavaScript

I need to solve 1 problem, my v-model ticker I guess works after keydown, therefore when function is called I have into it ticker without 1 symbol, can anyone explain how it works?

JavaScript

Advertisement

Answer

You should use @input event to get the current input value :

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement