2
0
mirror of https://github.com/tenrok/maska.git synced 2026-05-15 11:59:38 +03:00

Fix bug with mask dataset checks

This commit is contained in:
Alexander Shabunevich
2020-02-01 17:31:11 +03:00
parent d3a7c0eee9
commit b88d4fab08
2 changed files with 2 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -27,7 +27,7 @@ export default class Maska {
init () {
for (let i = 0; i < this._el.length; i++) {
const el = findInputElement(this._el[i])
if ((!el.dataset.mask && this._opts.mask) || el.dataset.mask !== this._opts.mask) {
if (this._opts.mask && (!el.dataset.mask || el.dataset.mask !== this._opts.mask)) {
el.dataset.mask = this._opts.mask
}
this.updateValue(el)