Skip to content

Commit d0ef9d6

Browse files
committed
Autocomplete: We no longer need to remove aria attributes on destroy.
1 parent 164e46e commit d0ef9d6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ui/jquery.ui.autocomplete.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,7 @@ $.widget( "ui.autocomplete", {
308308
clearTimeout( this.searching );
309309
this.element
310310
.removeClass( "ui-autocomplete-input" )
311-
.removeAttr( "autocomplete" )
312-
.removeAttr( "role" )
313-
.removeAttr( "aria-autocomplete" )
314-
.removeAttr( "aria-haspopup" );
311+
.removeAttr( "autocomplete" );
315312
this.menu.element.remove();
316313
this.liveRegion.remove();
317314
},

0 commit comments

Comments
 (0)