@@ -53,6 +53,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
53
53
}
54
54
} function _invoke ( body , then ) {
55
55
var result = body ( ) ; if ( result && result . then ) {
56
+
56
57
return result . then ( then ) ;
57
58
} return then ( result ) ;
58
59
} function _await ( value , then , direct ) {
@@ -87,11 +88,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
87
88
if ( ! $event . type . indexOf ( 'key' ) && _vm . _k ( $event . keyCode , "tab" , 9 , $event . key , "Tab" ) ) {
88
89
return null ;
89
90
} _vm . isTabbed = true ;
90
- } } } , [ _c ( 'div' , { ref : "inputSlot" , staticClass : "input-wrapper" , class : _vm . styles . inputWrapper , attrs : { "role" : "combobox" , "aria-haspopup" : "listbox" , "aria-owns" : _vm . listId , "aria-expanded" : ! ! _vm . listShown && ! _vm . removeList ? 'true' : 'false' } } , [ _vm . _t ( "default" , [ _c ( 'input' , _vm . _b ( { staticClass : "default-input" , class : _vm . styles . defaultInput , domProps : { "value" : _vm . text || '' } } , 'input' , _vm . $attrs , false ) ) ] ) ] , 2 ) , _vm . _v ( " " ) , _c ( 'transition' , { attrs : { "name" : "vue-simple-suggest" } } , [ ! ! _vm . listShown && ! _vm . removeList ? _c ( 'ul' , { staticClass : "suggestions" , class : _vm . styles . suggestions , attrs : { "id" : _vm . listId , "role" : "listbox" , "aria-labelledby" : _vm . listId } , on : { "mouseenter" : function mouseenter ( $event ) {
91
- return _vm . hoverList ( true ) ;
92
- } , "mouseleave" : function mouseleave ( $event ) {
93
- return _vm . hoverList ( false ) ;
94
- } } } , [ ! ! this . $scopedSlots [ 'misc-item-above' ] ? _c ( 'li' , [ _vm . _t ( "misc-item-above" , null , { "suggestions" : _vm . suggestions , "query" : _vm . text } ) ] , 2 ) : _vm . _e ( ) , _vm . _v ( " " ) , _vm . _l ( _vm . suggestions , function ( suggestion , index ) {
91
+ } } } , [ _c ( 'div' , { ref : "inputSlot" , staticClass : "input-wrapper" , class : _vm . styles . inputWrapper , attrs : { "role" : "combobox" , "aria-haspopup" : "listbox" , "aria-owns" : _vm . listId , "aria-expanded" : ! ! _vm . listShown && ! _vm . removeList ? 'true' : 'false' } } , [ _vm . _t ( "default" , [ _c ( 'input' , _vm . _b ( { staticClass : "default-input" , class : _vm . styles . defaultInput , domProps : { "value" : _vm . text || '' } } , 'input' , _vm . $attrs , false ) ) ] ) ] , 2 ) , _vm . _v ( " " ) , _c ( 'transition' , { attrs : { "name" : "vue-simple-suggest" } } , [ ! ! _vm . listShown && ! _vm . removeList ? _c ( 'ul' , { staticClass : "suggestions" , class : _vm . styles . suggestions , attrs : { "id" : _vm . listId , "role" : "listbox" , "aria-labelledby" : _vm . listId } } , [ ! ! this . $scopedSlots [ 'misc-item-above' ] ? _c ( 'li' , [ _vm . _t ( "misc-item-above" , null , { "suggestions" : _vm . suggestions , "query" : _vm . text } ) ] , 2 ) : _vm . _e ( ) , _vm . _v ( " " ) , _vm . _l ( _vm . suggestions , function ( suggestion , index ) {
95
92
return _c ( 'li' , { key : _vm . getId ( suggestion , index ) , staticClass : "suggest-item" , class : [ _vm . styles . suggestItem , {
96
93
selected : _vm . isSelected ( suggestion ) ,
97
94
hover : _vm . isHovered ( suggestion )
@@ -229,7 +226,6 @@ function _empty() {}function _awaitIgnored(value, direct) {
229
226
text : this . value ,
230
227
isPlainSuggestion : false ,
231
228
isClicking : false ,
232
- isOverList : false ,
233
229
isInFocus : false ,
234
230
isFalseFocus : false ,
235
231
isTabbed : false ,
@@ -416,9 +412,6 @@ function _empty() {}function _awaitIgnored(value, direct) {
416
412
417
413
this . hovered = item ;
418
414
} ,
419
- hoverList : function hoverList ( isOverList ) {
420
- this . isOverList = isOverList ;
421
- } ,
422
415
hideList : function hideList ( ) {
423
416
if ( this . listShown ) {
424
417
this . listShown = false ;
@@ -522,7 +515,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
522
515
this . hideList ( ) ;
523
516
524
517
/// Ensure, that all needed flags are off before finishing the click.
525
- this . isClicking = this . isOverList = false ;
518
+ this . isClicking = false ;
526
519
} ,
527
520
onBlur : function onBlur ( e ) {
528
521
var _this6 = this ;
@@ -531,7 +524,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
531
524
532
525
/// Clicking starts here, because input's blur occurs before the suggestionClick
533
526
/// and exactly when the user clicks the mouse button or taps the screen.
534
- this . isClicking = this . isOverList && ! this . isTabbed ;
527
+ this . isClicking = this . hovered && ! this . isTabbed ;
535
528
536
529
if ( ! this . isClicking ) {
537
530
this . isInFocus = false ;
@@ -552,9 +545,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
552
545
this . isTabbed = false ;
553
546
} ,
554
547
onFocus : function onFocus ( e ) {
555
- this . isInFocus = true ;
556
-
557
- // Only emit, if it was a native input focus
548
+ this . isInFocus = true ; // Only emit, if it was a native input focus
558
549
if ( e && ! this . isFalseFocus ) {
559
550
this . $emit ( 'focus' , e ) ;
560
551
}
0 commit comments