diff --git a/src/directive.ts b/src/directive.ts index d977f80..42225a4 100644 --- a/src/directive.ts +++ b/src/directive.ts @@ -25,7 +25,7 @@ export const vMaska: MaskaDirective = (el, binding) => { if (existed != null) { checkValue(input) - if (!existed.needUpdate(input, opts)) { + if (!existed.needUpdateOptions(input, opts)) { return } diff --git a/src/mask-input.ts b/src/mask-input.ts index ca06d55..616c014 100644 --- a/src/mask-input.ts +++ b/src/mask-input.ts @@ -43,7 +43,7 @@ export class MaskInput { this.items.clear() } - needUpdate (input: HTMLInputElement, opts: MaskInputOptions): boolean { + needUpdateOptions (input: HTMLInputElement, opts: MaskInputOptions): boolean { const mask = this.items.get(input) as Mask const maskNew = new Mask(parseInput(input, this.getMaskOpts(opts)))