mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: use _hoverable and _focusable for button events
This commit is contained in:
parent
29effb38eb
commit
96102f7692
10
ui/jquery.ui.selectmenu.js
vendored
10
ui/jquery.ui.selectmenu.js
vendored
@ -51,6 +51,8 @@ $.widget( "ui.selectmenu", {
|
||||
|
||||
this._drawButton();
|
||||
this._bind( this.button, this._buttonEvents );
|
||||
this._hoverable( this.button );
|
||||
this._focusable( this.button );
|
||||
|
||||
this._drawMenu();
|
||||
|
||||
@ -77,13 +79,13 @@ $.widget( "ui.selectmenu", {
|
||||
'aria-autocomplete': 'list',
|
||||
'aria-owns': this.ids.menu,
|
||||
'aria-haspopup': true
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
this.button.prepend( $( '<span class="ui-icon ' + ( this.options.dropdown ? 'ui-icon-triangle-1-s' : 'ui-icon-triangle-2-n-s' ) + '"/>' ) );
|
||||
|
||||
|
||||
this.buttonText = $( '<span />', {
|
||||
'class': 'ui-selectmenu-text' ,
|
||||
html: this.element.find( "option:selected" ).text() || ' '
|
||||
html: this.element.find( "option:selected" ).text() || ' '
|
||||
})
|
||||
.appendTo( this.button );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user