diff --git a/editor/js/libs/ui.js b/editor/js/libs/ui.js index fe326f270c7aadfb6d5487fcd33a904109801a6e..b48b0649f38436c21f87e2c393d4eafc226f3821 100644 --- a/editor/js/libs/ui.js +++ b/editor/js/libs/ui.js @@ -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; };