Answer the question
In order to leave comments, you need to log in
How to correctly update the value (Imask number)?
I'm trying to set up an input mask using the IMask package. ( https://unmanner.github.io/imaskjs/) Warning appears
Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.
<input class="form-control"
id="number-mask"
type="text"
autocomplete="off"
placeholder="0">
import IMask from 'imask';
data () {
return {
numberMask : null,
};
},
mounted () {
this.numberMask = new IMask(
document.getElementById('number-mask'),
{
mask : Number,
scale : 2,
signed : false,
thousandsSeparator: ' ',
radix : '.',
mapToRadix : [','],
min : 0,
},
);
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question