From eaf2704a180f3d367dce98fa38b36c52c6027679 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Mon, 15 Jul 2013 23:01:24 -0700 Subject: [PATCH] fixes #1528 Returning [] from data method on unset value for single-selects --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 23ea2156..f6cdcc90 100644 --- a/select2.js +++ b/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 {