mirror of
https://github.com/tenrok/maska.git
synced 2026-06-20 20:00:34 +03:00
Fix bug with mask dataset checks
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -27,7 +27,7 @@ export default class Maska {
|
|||||||
init () {
|
init () {
|
||||||
for (let i = 0; i < this._el.length; i++) {
|
for (let i = 0; i < this._el.length; i++) {
|
||||||
const el = findInputElement(this._el[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
|
el.dataset.mask = this._opts.mask
|
||||||
}
|
}
|
||||||
this.updateValue(el)
|
this.updateValue(el)
|
||||||
|
|||||||
Reference in New Issue
Block a user