fix(combobox): some old procedure still have options with trailing white spaces. ensure to trim selected value as well as options.value for better comparison

This commit is contained in:
Martin 2024-01-08 10:29:43 +01:00
parent d4b4274d26
commit 6c5f6dd6f6

View file

@ -105,7 +105,7 @@ export class Combobox {
}
const option = this.#visibleOptions.find(
(option) => option.value == maybeValue
(option) => option.value.trim() == maybeValue.trim()
);
if (!option) return false;