Explorar o código

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

Igor Vaynberg %!s(int64=11) %!d(string=hai) anos
pai
achega
eaf2704a18
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {