Skip to content

Commit 7a6ce7e

Browse files
committed
Autocomplete: 2002 Reduce menufocus timeout
1 parent ec52d38 commit 7a6ce7e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/unit/autocomplete/core.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,11 @@ QUnit.test( "ARIA", function( assert ) {
345345
assert.equal( liveRegion.parent().length, 0,
346346
"The liveRegion should be detached after destroy" );
347347
ready();
348-
}, 500 );
349-
}, 500 );
350-
}, 500 );
351-
}, 500 );
352-
}, 500 );
348+
}, 110 );
349+
}, 110 );
350+
}, 110 );
351+
}, 110 );
352+
}, 110 );
353353
} );
354354

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

380380
QUnit.test( "ARIA, init on detached input", function( assert ) {

ui/widgets/autocomplete.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ $.widget( "ui.autocomplete", {
272272
var that = this;
273273
this.liveRegionTimer = setTimeout( function() {
274274
that.liveRegion.html( $( "<div>" ).text( label ) );
275-
}, 400 );
275+
}, 100 );
276276
}
277277
},
278278
menuselect: function( event, ui ) {
@@ -671,7 +671,7 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
671671
var that = this;
672672
this.liveRegionTimer = setTimeout( function() {
673673
that.liveRegion.html( $( "<div>" ).text( message ) );
674-
}, 400 );
674+
}, 100 );
675675
}
676676
} );
677677

0 commit comments

Comments
 (0)