@@ -53,6 +53,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
5353 }
5454} function _invoke ( body , then ) {
5555 var result = body ( ) ; if ( result && result . then ) {
56+
5657 return result . then ( then ) ;
5758 } return then ( result ) ;
5859} function _await ( value , then , direct ) {
@@ -87,11 +88,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
8788 if ( ! $event . type . indexOf ( 'key' ) && _vm . _k ( $event . keyCode , "tab" , 9 , $event . key , "Tab" ) ) {
8889 return null ;
8990 } _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 ) {
9592 return _c ( 'li' , { key : _vm . getId ( suggestion , index ) , staticClass : "suggest-item" , class : [ _vm . styles . suggestItem , {
9693 selected : _vm . isSelected ( suggestion ) ,
9794 hover : _vm . isHovered ( suggestion )
@@ -229,7 +226,6 @@ function _empty() {}function _awaitIgnored(value, direct) {
229226 text : this . value ,
230227 isPlainSuggestion : false ,
231228 isClicking : false ,
232- isOverList : false ,
233229 isInFocus : false ,
234230 isFalseFocus : false ,
235231 isTabbed : false ,
@@ -416,9 +412,6 @@ function _empty() {}function _awaitIgnored(value, direct) {
416412
417413 this . hovered = item ;
418414 } ,
419- hoverList : function hoverList ( isOverList ) {
420- this . isOverList = isOverList ;
421- } ,
422415 hideList : function hideList ( ) {
423416 if ( this . listShown ) {
424417 this . listShown = false ;
@@ -522,7 +515,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
522515 this . hideList ( ) ;
523516
524517 /// Ensure, that all needed flags are off before finishing the click.
525- this . isClicking = this . isOverList = false ;
518+ this . isClicking = false ;
526519 } ,
527520 onBlur : function onBlur ( e ) {
528521 var _this6 = this ;
@@ -531,7 +524,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
531524
532525 /// Clicking starts here, because input's blur occurs before the suggestionClick
533526 /// 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 ;
535528
536529 if ( ! this . isClicking ) {
537530 this . isInFocus = false ;
@@ -552,9 +545,7 @@ function _empty() {}function _awaitIgnored(value, direct) {
552545 this . isTabbed = false ;
553546 } ,
554547 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
558549 if ( e && ! this . isFalseFocus ) {
559550 this . $emit ( 'focus' , e ) ;
560551 }
0 commit comments