[Vuejs]-How to make Vue to see changes in input element if preventDefault was used?

0👍

Well, I think I found a solution which is clean enough.
At the end of my method code, I just need to add:
el.dispatchEvent(new Event('input'));

And Vue will change model according to element value.

Please let me know in the comments if there are any cons.

Leave a comment