Reopen combobox on input mousedown after selection.
Selecting an option closes the list without blurring the input, so a later click never fires focus. Open the panel on mousedown as well. Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
This commit is contained in:
@@ -597,6 +597,9 @@
|
||||
};
|
||||
|
||||
inputEl.addEventListener("focus", open);
|
||||
inputEl.addEventListener("mousedown", () => {
|
||||
open();
|
||||
});
|
||||
inputEl.addEventListener("input", () => {
|
||||
inputDirty = true;
|
||||
if (!openState) open();
|
||||
|
||||
Reference in New Issue
Block a user