@@ -213,7 +213,7 @@ $.widget( "ui.autocomplete", {
213
213
. hide ( )
214
214
. menu ( "instance" ) ;
215
215
216
- this . _addClass ( this . menu . element , "ui-autocomplete" , " ui-front" ) ;
216
+ this . _addClass ( this . menu . element , "ui-autocomplete ui-front" ) ;
217
217
this . _on ( this . menu . element , {
218
218
mousedown : function ( event ) {
219
219
// prevent moving focus out of the text field
@@ -309,9 +309,8 @@ $.widget( "ui.autocomplete", {
309
309
role : "status" ,
310
310
"aria-live" : "assertive" ,
311
311
"aria-relevant" : "additions"
312
- } )
313
- . addClass ( "ui-helper-hidden-accessible" )
314
- . appendTo ( this . document [ 0 ] . body ) ;
312
+ } ) . appendTo ( this . document [ 0 ] . body ) ;
313
+ this . _addClass ( this . liveRegion , "ui-helper-hidden-accessible" ) ;
315
314
316
315
// turning off autocomplete prevents the browser from remembering the
317
316
// value when navigating through history, so we re-enable autocomplete
@@ -325,9 +324,7 @@ $.widget( "ui.autocomplete", {
325
324
326
325
_destroy : function ( ) {
327
326
clearTimeout ( this . searching ) ;
328
- this . element
329
- . removeClass ( "ui-autocomplete-input" )
330
- . removeAttr ( "autocomplete" ) ;
327
+ this . element . removeAttr ( "autocomplete" ) ;
331
328
this . menu . element . remove ( ) ;
332
329
this . liveRegion . remove ( ) ;
333
330
} ,
0 commit comments