Selectmenu: Properly parse value from options

Fixes #10684
This commit is contained in:
Scott González 2014-11-04 08:36:33 -05:00
parent f656aebe3f
commit 809cc0f8d0

View File

@ -618,7 +618,7 @@ return $.widget( "ui.selectmenu", {
return { return {
element: option, element: option,
index: index, index: index,
value: option.attr( "value" ), value: option.val(),
label: option.text(), label: option.text(),
optgroup: optgroup.attr( "label" ) || "", optgroup: optgroup.attr( "label" ) || "",
disabled: optgroup.prop( "disabled" ) || option.prop( "disabled" ) disabled: optgroup.prop( "disabled" ) || option.prop( "disabled" )