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:
parent
d4b4274d26
commit
6c5f6dd6f6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue