mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Remove debounced filter until select all issue is addressed
This commit is contained in:
parent
611202c905
commit
3fccd63bd3
@ -29,7 +29,6 @@ import {
|
|||||||
fuzzyFilterSort,
|
fuzzyFilterSort,
|
||||||
ScorableTextItem,
|
ScorableTextItem,
|
||||||
} from "../../common/string/filter/sequence-matching";
|
} from "../../common/string/filter/sequence-matching";
|
||||||
import { debounce } from "../../common/util/debounce";
|
|
||||||
import "../../components/ha-circular-progress";
|
import "../../components/ha-circular-progress";
|
||||||
import "../../components/ha-dialog";
|
import "../../components/ha-dialog";
|
||||||
import "../../components/ha-header-bar";
|
import "../../components/ha-header-bar";
|
||||||
@ -237,10 +236,10 @@ export class QuickBar extends LitElement {
|
|||||||
|
|
||||||
if (newFilter.startsWith(">")) {
|
if (newFilter.startsWith(">")) {
|
||||||
this._commandMode = true;
|
this._commandMode = true;
|
||||||
this._debouncedSetFilter(newFilter.substring(1));
|
this._filter = newFilter.substring(1);
|
||||||
} else {
|
} else {
|
||||||
this._commandMode = false;
|
this._commandMode = false;
|
||||||
this._debouncedSetFilter(newFilter);
|
this._filter = newFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oldCommandMode !== this._commandMode) {
|
if (oldCommandMode !== this._commandMode) {
|
||||||
@ -249,10 +248,6 @@ export class QuickBar extends LitElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private _debouncedSetFilter = debounce((filter: string) => {
|
|
||||||
this._filter = filter;
|
|
||||||
}, 100);
|
|
||||||
|
|
||||||
private _setFocusFirstListItem() {
|
private _setFocusFirstListItem() {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this._getItemAtIndex(0)?.rippleHandlers.startFocus();
|
this._getItemAtIndex(0)?.rippleHandlers.startFocus();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user