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("focus", open);
|
||||||
|
inputEl.addEventListener("mousedown", () => {
|
||||||
|
open();
|
||||||
|
});
|
||||||
inputEl.addEventListener("input", () => {
|
inputEl.addEventListener("input", () => {
|
||||||
inputDirty = true;
|
inputDirty = true;
|
||||||
if (!openState) open();
|
if (!openState) open();
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ def test_ui_asset_exists_and_has_required_bridge_content():
|
|||||||
"api.create(",
|
"api.create(",
|
||||||
"finally",
|
"finally",
|
||||||
'inputEl.value = selectEl.value || ""',
|
'inputEl.value = selectEl.value || ""',
|
||||||
|
'inputEl.addEventListener("mousedown"',
|
||||||
):
|
):
|
||||||
assert expected in content
|
assert expected in content
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user