Commit b5826452 authored by Andrea Giammarchi's avatar Andrea Giammarchi

Issue #416 - Close language dropdown on change

parent 823f15c6
......@@ -245,17 +245,13 @@ class IOListBox extends IOElement
const el = event.target.closest('[role="option"]');
if (el)
{
if (this.change)
{
this.expanded = false;
}
if (el.getAttribute("aria-disabled") !== "true")
{
this.dispatchEvent(new CustomEvent("change", {
detail: getItem.call(this, el.id)
}));
this.render();
}
this.expanded = false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment