Don't eat spaces while searching (#21479)

This commit is contained in:
Simon Lamon 2024-07-31 10:58:39 +02:00 committed by GitHub
parent dd74a35d3f
commit 0aa25dbed9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -610,7 +610,7 @@ export class HaDataTable extends LitElement {
filteredData = await this._memFilterData(
this.data,
this._sortColumns,
this._filter
this._filter.trim()
);
}

View File

@ -79,7 +79,7 @@ class SearchInputOutlined extends LitElement {
}
private async _filterInputChanged(e) {
this._filterChanged(e.target.value?.trim());
this._filterChanged(e.target.value);
}
private async _clearSearch() {

View File

@ -67,7 +67,7 @@ class SearchInput extends LitElement {
}
private async _filterInputChanged(e) {
this._filterChanged(e.target.value?.trim());
this._filterChanged(e.target.value);
}
private async _clearSearch() {