Changes are not reflected back to model when using with Vue2
See original GitHub issueChanges are not reflected back to model
Declaring directive
Vue.directive('input-mask', {
bind: function(el, o, v) {
$(el).inputmask();
}
});
Declaring control
<input type="text" class="form-control" name="code"
placeholder="Enter code" v-model="code"
v-input-mask data-inputmask="'mask': '9999999999[9][9]', 'greedy' : false">
Description of problem
Mask is applied correctly. However when I modify value in form changes are not saved in model. Not on keypress not on blur.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:28 (14 by maintainers)
Top Results From Across the Web
Vue.js: Data is not updating with state change so the re-render ...
I'm using mapState import { mapState } from 'vuex to watch for a state change. computed: { ...mapState(['getFreeVideo']) }. I am not seeing...
Read more >Why Your Vue Component Isn't Updating (and how to fix it)
1. Check that variables are reactive · 2. Make sure to update Arrays and Objects correctly (only in Vue 2) · 3. Use...
Read more >Component not updating when data changes - Vue Forum
Unfortunately when this data changes the component does not reflect that change. I've tried using both watch and update and different ...
Read more >Vue 3.1 - Official Migration Build from Vue 2 to 3 - This Dot Labs
This incldues breaking changes such as v-model , which had a syntactic change in Vue 3. The intent of the migration build is...
Read more >Understanding the New Reactivity System in Vue 3 - SitePoint
Every time the model changes, the view is re-rendered to reflect the changes. Let's take a simple Markdown editor as an example.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have no time to modify project core libs.
The fast solution - assign new value manually at every keyup event 😃
JS
HTML + VUE
@adyz , npm i inputmask
in your code => var Inputmask = require(“inputmask”)