3👍
Figured out the problem. Though I was returning a boolean when reading the keyCodes, I wasn’t preventing the default keypress action. The restrictChars
method should look something like this!
restrictChars: function($event) {
if ($event.charCode === 0 || /\d/.test(String.fromCharCode($event.charCode))) {
return true
} else {
$event.preventDefault();
}
}
- [Vuejs]-V-for for nested object
- [Vuejs]-Property or field cannot be found on object of type 'org.springframework.beans.factory.config.BeanExpressionContext'
Source:stackexchange.com