We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efcd9a0 commit 1e623b9Copy full SHA for 1e623b9
ui/jquery.ui.selectmenu.js
@@ -629,14 +629,8 @@ $.widget("ui.selectmenu", {
629
630
value: function(newValue) {
631
if (arguments.length) {
632
- // FIXME test for number is a kind of legacy support, will be remoced in v1.1
633
- // see this post for more info: https://github.com/fnagel/jquery-ui/issues#issue/33
634
- if (typeof newValue == "number") {
635
- this.index(newValue);
636
- } else if (typeof newValue == "string") {
637
- this.element[0].value = newValue;
638
- this._refreshValue();
639
- }
+ this.element[0].value = newValue;
+ this._refreshValue();
640
} else {
641
return this.element[0].value;
642
}
0 commit comments