ソースを参照

Merge branch 'ajacome-patch-1' into 3.x

Robin Herbots 11 年 前
コミット
7e20586222
1 ファイル変更2 行追加2 行削除
  1. 2 2
      js/jquery.inputmask.js

+ 2 - 2
js/jquery.inputmask.js

@@ -754,7 +754,7 @@
 
                     npt.scrollLeft = npt.scrollWidth;
                     if (opts.insertMode == false && begin == end) end++; //set visualization for insert/overwrite mode
-                    if (npt.setSelectionRange) {
+                    if (npt.setSelectionRange &&  $(npt).is(":focus") == true) { 
                         npt.selectionStart = begin;
                         npt.selectionEnd = end;
 
@@ -1445,7 +1445,7 @@
 
                     npt.scrollLeft = npt.scrollWidth;
                     if (opts.insertMode == false && begin == end) end++; //set visualization for insert/overwrite mode
-                    if (npt.setSelectionRange) {
+                    if (npt.setSelectionRange &&  $(npt).is(":focus") == true) { 
                         npt.selectionStart = begin;
                         npt.selectionEnd = end;