@maskito/core
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -135,3 +135,5 @@ 'use strict'; | ||
value, | ||
selection: computedMode === 'replace' ? [from, from + newCharacters.length] : [from, to], | ||
selection: computedMode === 'replace' | ||
? [from, Math.max(from + newCharacters.length, to)] | ||
: [from, to], | ||
}; | ||
@@ -138,0 +140,0 @@ } |
@@ -133,3 +133,5 @@ function getContentEditableSelection(element) { | ||
value, | ||
selection: computedMode === 'replace' ? [from, from + newCharacters.length] : [from, to], | ||
selection: computedMode === 'replace' | ||
? [from, Math.max(from + newCharacters.length, to)] | ||
: [from, to], | ||
}; | ||
@@ -136,0 +138,0 @@ } |
{ | ||
"name": "@maskito/core", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "The main zero-dependency and framework-agnostic Maskito's package to create an input mask", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
96550
1754