mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Selectmenu: fixed destroy method, show original select again, thx to @jzaefferer
This commit is contained in:
6
ui/jquery.ui.selectmenu.js
vendored
6
ui/jquery.ui.selectmenu.js
vendored
@@ -60,12 +60,11 @@ $.widget( "ui.selectmenu", {
|
||||
}
|
||||
});
|
||||
|
||||
that._addNewelement();
|
||||
that._addNewelement();
|
||||
that._bind( that.newelement, that._newelementEvents );
|
||||
|
||||
that._addList();
|
||||
that.refresh();
|
||||
|
||||
that.refresh();
|
||||
},
|
||||
|
||||
_addNewelement: function() {
|
||||
@@ -414,6 +413,7 @@ $.widget( "ui.selectmenu", {
|
||||
_destroy: function() {
|
||||
this.listWrap.remove();
|
||||
this.newelementWrap.remove();
|
||||
this.element.show();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user