Skip to content

Commit eaf2704

Browse files
committed
fixes select2#1528 Returning [] from data method on unset value for single-selects
1 parent 01a395f commit eaf2704

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ the specific language governing permissions and limitations under the Apache Lic
20442044
initSelection: function () {
20452045
var selected;
20462046
if (this.isPlaceholderOptionSelected()) {
2047-
this.updateSelection([]);
2047+
this.updateSelection(null);
20482048
this.close();
20492049
this.setPlaceholder();
20502050
} else {

0 commit comments

Comments
 (0)