Restore previously selected option when updating a drop-down list.

上级 0aa61720
......@@ -267,6 +267,7 @@ UI.Select.prototype.setMultiple = function ( boolean ) {
};
UI.Select.prototype.setOptions = function ( options ) {
var selected = this.dom.value;
while ( this.dom.children.length > 0 ) {
......@@ -283,6 +284,8 @@ UI.Select.prototype.setOptions = function ( options ) {
}
this.dom.value = selected;
return this;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册