Permalink
Browse files

Selectmenu: use text() instead of html() as the option and optgroup i…

…s read as text
  • Loading branch information...
1 parent cba09da commit 60e3302d96f4b6277ccfdb828f82844fce159e75 @fnagel fnagel committed Dec 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.selectmenu.js
@@ -260,7 +260,7 @@ $.widget( "ui.selectmenu", {
if ( item.optgroup !== currentOptgroup ) {
$( "<li />", {
"class": "ui-selectmenu-optgroup" + ( item.element.parent( "optgroup" ).attr( "disabled" ) ? " ui-state-disabled" : "" ),
- html: item.optgroup
+ text: item.optgroup
}).appendTo( ul );
currentOptgroup = item.optgroup;
}
@@ -274,7 +274,7 @@ $.widget( "ui.selectmenu", {
li.addClass( "ui-state-disabled" );
}
li.append( $( "<a />", {
- html: item.label,
+ text: item.label,
href: "#"
})
);

0 comments on commit 60e3302

Please sign in to comment.