Skip to content

Commit

Permalink
Autocomplete: 2002 Reduce menufocus timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
bbenjamin committed Dec 10, 2021
1 parent ec52d38 commit 7a6ce7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions tests/unit/autocomplete/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ QUnit.test( "ARIA", function( assert ) {
assert.equal( liveRegion.parent().length, 0,
"The liveRegion should be detached after destroy" );
ready();
}, 500 );
}, 500 );
}, 500 );
}, 500 );
}, 500 );
}, 110 );
}, 110 );
}, 110 );
}, 110 );
}, 110 );
} );

QUnit.test( "ARIA, aria-label announcement", function( assert ) {
Expand All @@ -374,7 +374,7 @@ QUnit.test( "ARIA, aria-label announcement", function( assert ) {
assert.equal( liveRegion.children().filter( ":visible" ).text(), "People : anders andersson",
"Live region changed on keydown to announce the highlighted value's aria-label attribute" );
ready();
}, 500 );
}, 110 );
} );

QUnit.test( "ARIA, init on detached input", function( assert ) {
Expand Down
4 changes: 2 additions & 2 deletions ui/widgets/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ $.widget( "ui.autocomplete", {
var that = this;
this.liveRegionTimer = setTimeout( function() {
that.liveRegion.html( $( "<div>" ).text( label ) );
}, 400 );
}, 100 );
}
},
menuselect: function( event, ui ) {
Expand Down Expand Up @@ -671,7 +671,7 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
var that = this;
this.liveRegionTimer = setTimeout( function() {
that.liveRegion.html( $( "<div>" ).text( message ) );
}, 400 );
}, 100 );
}
} );

Expand Down

0 comments on commit 7a6ce7e

Please sign in to comment.