mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 06:16:33 +00:00
Fix card-picker search for single character (#18733)
* Fix card-picker search for single character * Update src/panels/lovelace/editor/card-editor/hui-card-picker.ts Co-authored-by: Paul Bottein <paul.bottein@gmail.com> --------- Co-authored-by: Bram Kragten <mail@bramkragten.nl> Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
This commit is contained in:
parent
1de2e6161d
commit
239d8fa948
@ -81,7 +81,7 @@ export class HuiCardPicker extends LitElement {
|
||||
const options: IFuseOptions<Card> = {
|
||||
keys: ["type", "name", "description"],
|
||||
isCaseSensitive: false,
|
||||
minMatchCharLength: 2,
|
||||
minMatchCharLength: filter.length === 1 ? 1 : 2,
|
||||
threshold: 0.2,
|
||||
};
|
||||
const fuse = new Fuse(cards, options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user