Procházet zdrojové kódy

fixes #1528 Returning [] from data method on unset value for single-selects

Igor Vaynberg před 11 roky
rodič
revize
eaf2704a18
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -2044,7 +2044,7 @@ the specific language governing permissions and limitations under the Apache Lic
         initSelection: function () {
             var selected;
             if (this.isPlaceholderOptionSelected()) {
-                this.updateSelection([]);
+                this.updateSelection(null);
                 this.close();
                 this.setPlaceholder();
             } else {