Merge pull request #9896 from mfo/US/fix-combobox-with-not-trimmed-option
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:
commit
e2cb833a51
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ export class Combobox {
|
||||||
}
|
}
|
||||||
|
|
||||||
const option = this.#visibleOptions.find(
|
const option = this.#visibleOptions.find(
|
||||||
(option) => option.value == maybeValue
|
(option) => option.value.trim() == maybeValue.trim()
|
||||||
);
|
);
|
||||||
if (!option) return false;
|
if (!option) return false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue