diff options
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 8cf8886d8..c6c557134 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -57,10 +57,7 @@ $.widget("ui.menu", { }); this.refresh(); - if ( !this.options.input ) { - this.options.input = this.element.attr( "tabIndex", 0 ); - } - this.options.input.bind( "keydown.menu", function( event ) { + this.element.attr( "tabIndex", 0 ).bind( "keydown.menu", function( event ) { if ( self.options.disabled ) { return; } |