|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 4.0.0-beta.11
|
|
|
+* Version: 4.0.0-beta.12
|
|
|
*/
|
|
|
|
|
|
!function(factory) {
|
|
|
@@ -902,7 +902,7 @@
|
|
|
}
|
|
|
function caret(input, begin, end, notranslate) {
|
|
|
function translatePosition(pos) {
|
|
|
- return !0 === notranslate || !isRTL || "number" != typeof pos || opts.greedy && "" === opts.placeholder || (pos = input.inputmask.__valueGet.call(input).length - pos),
|
|
|
+ return !0 === notranslate || !isRTL || "number" != typeof pos || opts.greedy && "" === opts.placeholder || (pos = input.inputmask._valueGet.call(input).length - pos),
|
|
|
pos;
|
|
|
}
|
|
|
var range;
|
|
|
@@ -918,7 +918,7 @@
|
|
|
"number" == typeof begin) {
|
|
|
begin = translatePosition(begin), end = "number" == typeof (end = translatePosition(end)) ? end : begin;
|
|
|
var scrollCalc = parseInt(((input.ownerDocument.defaultView || window).getComputedStyle ? (input.ownerDocument.defaultView || window).getComputedStyle(input, null) : input.currentStyle).fontSize) * end;
|
|
|
- if (input.scrollLeft = scrollCalc > input.scrollWidth ? scrollCalc : 0, !1 === opts.insertMode && begin === end && end++,
|
|
|
+ if (input.scrollLeft = scrollCalc > input.scrollWidth ? scrollCalc : 0, iphone || !1 !== opts.insertMode || begin !== end || end++,
|
|
|
input.inputmask.caretPos = {
|
|
|
begin: begin,
|
|
|
end: end
|