From c15b9bc8cf11982e88636533bb24db2f3e7b95e2 Mon Sep 17 00:00:00 2001 From: Yury Kaliada Date: Fri, 23 Nov 2018 16:29:11 +0300 Subject: [PATCH] Fix typo --- js/jquery.inputmask-multi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.inputmask-multi.js b/js/jquery.inputmask-multi.js index 5520dda..806dbd8 100644 --- a/js/jquery.inputmask-multi.js +++ b/js/jquery.inputmask-multi.js @@ -312,7 +312,7 @@ var text = this.inputmask._valueGet(); e = e || window.event; var k = e.which || e.charCode || e.keyCode, c = String.fromCharCode(k); - caretPos = caret.call(this); + var caretPos = caret.call(this); if (caretPos.begin == caretPos.end && text.charAt(caretPos.begin) == this.inputmasks.placeholder) { text = text.substring(0, caretPos.begin) + c + text.substring(caretPos.end + 1); } else {