From 979373983babce7122d98c4f3919426735555d61 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Thu, 31 Jul 2014 12:35:42 +0200 Subject: Selectmenu: Copy title attributes Fixes #10435 Closes gh-1298 --- ui/selectmenu.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ui/selectmenu.js') diff --git a/ui/selectmenu.js b/ui/selectmenu.js index a2409bde2..0859a2c2c 100644 --- a/ui/selectmenu.js +++ b/ui/selectmenu.js @@ -94,7 +94,8 @@ return $.widget( "ui.selectmenu", { "aria-expanded": "false", "aria-autocomplete": "list", "aria-owns": this.ids.menu, - "aria-haspopup": "true" + "aria-haspopup": "true", + title: this.element.attr( "title" ) }) .insertAfter( this.element ); @@ -317,7 +318,9 @@ return $.widget( "ui.selectmenu", { _renderItem: function( ul, item ) { var li = $( "
  • " ), - wrapper = $( "
    " ); + wrapper = $( "
    ", { + title: item.element.attr( "title" ) + }); if ( item.disabled ) { li.addClass( "ui-state-disabled" ); -- cgit v1.2.3