Skip to content

Commit 92e2c6d

Browse files
committed
Merge pull request select2#1073 from norlin/master
Fix initSelection method with empty input value
2 parents fffba0d + c8cae0a commit 92e2c6d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

select2.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,7 @@ the specific language governing permissions and limitations under the Apache Lic
18631863
initSelection: function () {
18641864
var selected;
18651865
if (this.opts.element.val() === "" && this.opts.element.text() === "") {
1866+
this.updateSelection([]);
18661867
this.close();
18671868
this.setPlaceholder();
18681869
} else {

0 commit comments

Comments
 (0)