Browse Source

Fix mask bug

Caleb Porzio 3 years ago
parent
commit
84e2ef3fd6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/mask/src/index.js

+ 1 - 1
packages/mask/src/index.js

@@ -53,7 +53,7 @@ export default function (Alpine) {
                 return lastInputValue = el.value
             }
 
-            let setInput = () => { lastInputValque = el.value = formatInput(input, template) }
+            let setInput = () => { lastInputValue = el.value = formatInput(input, template) }
 
             if (shouldRestoreCursor) {
                 // When an input element's value is set, it moves the cursor to the end