Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into feat/slug-tile-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore committed Jan 31, 2024
2 parents fd8ddd9 + 944a69a commit de1024c
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,16 @@ class CDSTable extends HostListenerMixin(LitElement) {
private _handleFilterRows() {
const unfilteredRows = [] as any;
forEach(this._tableRows, (elem) => {
const rowText = elem.textContent?.trim();
const filtered = this.filterRows(rowText as string, this._searchValue);
let rowText = elem.textContent?.trim();
let filtered = this.filterRows(rowText as string, this._searchValue);
(elem as any).filtered = filtered;

if (filtered && this.expandable) {
rowText = (elem as any).nextElementSibling.textContent?.trim();
filtered = this.filterRows(rowText as string, this._searchValue);
(elem as any).filtered = filtered;
}

if (!filtered) {
unfilteredRows.push(elem);
}
Expand Down

0 comments on commit de1024c

Please sign in to comment.