inputmask
Advanced tools
Comparing version 5.0.7-beta.18 to 5.0.7-beta.19
@@ -186,4 +186,5 @@ import { | ||
var pasteValue = inputValue = inputValue.split(""); | ||
var pasteValue = inputValue; | ||
if (inputmask.isRTL) { | ||
pasteValue = pasteValue.split("") | ||
for (let c of getBufferTemplate.call(inputmask)) { | ||
@@ -193,2 +194,3 @@ if (pasteValue[0] === c) | ||
} | ||
pasteValue = pasteValue.join(""); | ||
} | ||
@@ -326,3 +328,3 @@ if (typeof opts.onBeforePaste === "function") { | ||
var keypress = new $.Event("keypress"); | ||
keypress.which = entry.charCodeAt(0); | ||
keypress.keyCode = entry.charCodeAt(0); | ||
inputmask.ignorable = false; //make sure ignorable is ignored ;-) | ||
@@ -329,0 +331,0 @@ EventHandlers.keypressEvent.call(input, keypress); |
@@ -92,3 +92,3 @@ import keyCode from "./keycode.json"; | ||
var keypress = new $.Event("_checkval"); | ||
keypress.which = charCode.toString().charCodeAt(0); | ||
keypress.keyCode = charCode.toString().charCodeAt(0); | ||
charCodes += charCode; | ||
@@ -133,3 +133,3 @@ var lvp = getLastValidPosition.call(inputmask, undefined, true); | ||
validPos.generatedInput = true; | ||
keypress.which = validPos.input.charCodeAt(0); | ||
keypress.keyCode = validPos.input.charCodeAt(0); | ||
result = EventHandlers.keypressEvent.call(inputmask, keypress, true, false, strict, nextSndx); | ||
@@ -136,0 +136,0 @@ if (result && result.pos !== undefined && result.pos !== sndx && maskset.validPositions[result.pos] && maskset.validPositions[result.pos].match.static === true) { |
@@ -522,3 +522,3 @@ import { | ||
for (i = start; i < end; i++) { | ||
keypress.which = bffr[i].toString().charCodeAt(0); | ||
keypress.keyCode = bffr[i].toString().charCodeAt(0); | ||
inputmask.ignorable = false; //make sure ignorable is ignored ;-) | ||
@@ -525,0 +525,0 @@ var valResult = EventHandlers.keypressEvent.call(inputmask, keypress, true, false, false, p); |
{ | ||
"name": "inputmask", | ||
"version": "5.0.7-beta.18", | ||
"version": "5.0.7-beta.19", | ||
"description": "Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.", | ||
@@ -5,0 +5,0 @@ "main": "dist/inputmask.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
814338
10977