ソースを参照

fix initSelection with empty input value

norlin 12 年 前
コミット
c8cae0a6c9
1 ファイル変更1 行追加0 行削除
  1. 1 0
      select2.js

+ 1 - 0
select2.js

@@ -1805,6 +1805,7 @@ the specific language governing permissions and limitations under the Apache Lic
         initSelection: function () {
             var selected;
             if (this.opts.element.val() === "" && this.opts.element.text() === "") {
+                this.updateSelection([]);
                 this.close();
                 this.setPlaceholder();
             } else {