Skip to content

Commit c8cae0a

Browse files
committed
fix initSelection with empty input value
1 parent b618616 commit c8cae0a

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
@@ -1805,6 +1805,7 @@ the specific language governing permissions and limitations under the Apache Lic
18051805
initSelection: function () {
18061806
var selected;
18071807
if (this.opts.element.val() === "" && this.opts.element.text() === "") {
1808+
this.updateSelection([]);
18081809
this.close();
18091810
this.setPlaceholder();
18101811
} else {

0 commit comments

Comments
 (0)