Sync the ink combobox text as soon as the set's ink list rebuilds.
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
Some checks failed
Mirror to Gitea / mirror (push) Has been cancelled
Previously the visible value stayed on the old ink until the box was clicked, because rebuild only copied the select when the input was empty. Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
This commit is contained in:
@@ -207,6 +207,7 @@
|
||||
|
||||
select, input {
|
||||
width: 100%;
|
||||
align-self: stretch;
|
||||
min-height: 54px;
|
||||
padding: 16px 12px;
|
||||
border: 1px solid var(--border-strong);
|
||||
@@ -590,9 +591,7 @@
|
||||
empty.textContent = "No matches";
|
||||
empty.hidden = true;
|
||||
panelEl.append(empty);
|
||||
if (selectEl.value && !inputEl.value) {
|
||||
inputEl.value = selectEl.value;
|
||||
}
|
||||
inputEl.value = selectEl.value || "";
|
||||
inputDirty = false;
|
||||
syncDisabled();
|
||||
};
|
||||
|
||||
@@ -32,6 +32,7 @@ def test_ui_asset_exists_and_has_required_bridge_content():
|
||||
"get_inks(setDropdown.value)",
|
||||
"api.create(",
|
||||
"finally",
|
||||
'inputEl.value = selectEl.value || ""',
|
||||
):
|
||||
assert expected in content
|
||||
|
||||
|
||||
Reference in New Issue
Block a user