Explorar o código

Merge pull request #1073 from norlin/master

Fix initSelection method with empty input value
Igor Vaynberg %!s(int64=12) %!d(string=hai) anos
pai
achega
92e2c6d56f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      select2.js

+ 1 - 0
select2.js

@@ -1863,6 +1863,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 {