diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index ba3e208b2..73ab01cee 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -148,10 +148,10 @@ $.widget( "ui.selectmenu", { } } that.focus = item.index; - } - }) - // change ARIA role - .attr( 'role', 'listbox' ); + }, + // set ARIA role + role: 'listbox' + }); // change menu styles? if ( this.options.dropdown ) {