Compare commits

...

2 Commits

Author SHA1 Message Date
Cursor Agent
ed2573d8e4 Require the combobox mousedown handler to call open().
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
The previous substring only checked that a mousedown listener exists.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
2026-08-15 08:43:17 +00:00
Cursor Agent
9121200bfa 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>
2026-08-15 08:42:50 +00:00
2 changed files with 4 additions and 0 deletions

View File

@@ -597,6 +597,9 @@
};
inputEl.addEventListener("focus", open);
inputEl.addEventListener("mousedown", () => {
open();
});
inputEl.addEventListener("input", () => {
inputDirty = true;
if (!openState) open();

View File

@@ -33,6 +33,7 @@ def test_ui_asset_exists_and_has_required_bridge_content():
"api.create(",
"finally",
'inputEl.value = selectEl.value || ""',
'inputEl.addEventListener("mousedown", () => {\n open();\n });',
):
assert expected in content