File tree 1 file changed +4
-1
lines changed 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ var Selectize = function($input, settings) {
19
19
20
20
eventNS : '.selectize' + ( ++ Selectize . count ) ,
21
21
highlightedValue : null ,
22
+ isBlurring : false ,
22
23
isOpen : false ,
23
24
isDisabled : false ,
24
25
isRequired : $input . is ( '[required]' ) ,
@@ -652,10 +653,12 @@ $.extend(Selectize.prototype, {
652
653
// IE11 bug: element still marked as active
653
654
dest && dest . focus && dest . focus ( ) ;
654
655
656
+ self . isBlurring = false ;
655
657
self . ignoreFocus = false ;
656
658
self . trigger ( 'blur' ) ;
657
659
} ;
658
660
661
+ self . isBlurring = true ;
659
662
self . ignoreFocus = true ;
660
663
if ( self . settings . create && self . settings . createOnBlur ) {
661
664
self . createItem ( null , false , deactivate ) ;
@@ -1783,7 +1786,7 @@ $.extend(Selectize.prototype, {
1783
1786
// Do not trigger blur while inside a blur event,
1784
1787
// this fixes some weird tabbing behavior in FF and IE.
1785
1788
// See #1164
1786
- if ( self . ignoreFocus ) {
1789
+ if ( ! self . isBlurring ) {
1787
1790
self . $control_input . blur ( ) ; // close keyboard on iOS
1788
1791
}
1789
1792
}
You can’t perform that action at this time.
0 commit comments