Skip to content
Snippets Groups Projects
Commit 499b943e authored by Robert Phillips's avatar Robert Phillips
Browse files

Issue #3309894 by robphillips: Set is-filled selector on init.

parent 51283df9
Branches
Tags
No related merge requests found
...@@ -32,6 +32,9 @@ ...@@ -32,6 +32,9 @@
item: "choices__item choices__item--autocomplete", item: "choices__item choices__item--autocomplete",
}, },
}); });
if (this.choices.getValue().length) {
this.choices.containerOuter.element.classList.add("is-filled");
}
element.addEventListener("change", () => { element.addEventListener("change", () => {
this.clear.bind(this); this.clear.bind(this);
if (this.choices.getValue().length) { if (this.choices.getValue().length) {
......
...@@ -24,6 +24,11 @@ ...@@ -24,6 +24,11 @@
item: "choices__item choices__item--autocomplete" item: "choices__item choices__item--autocomplete"
} }
}); });
if (this.choices.getValue().length) {
this.choices.containerOuter.element.classList.add("is-filled");
}
element.addEventListener("change", () => { element.addEventListener("change", () => {
this.clear.bind(this); this.clear.bind(this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment