Skip to content

Commit

Permalink
Ensure that all ShowMore data table cells get collapsed when page is …
Browse files Browse the repository at this point in the history
…changed.

PiperOrigin-RevId: 556846030
  • Loading branch information
nadah09 authored and LIT team committed Aug 14, 2023
1 parent 2bd5419 commit ddf8e52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lit_nlp/client/elements/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,8 @@ export class DataTable extends ReactiveElement {

const changePage = (offset: number) => {
this.pageNum = modPageNumber(this.pageNum + offset);
this.tableTextCells?.forEach(t => {t.expanded = false;});
this.hasExpandedCells = false;
};
const firstPage = () => {
this.pageNum = 0;
Expand Down

0 comments on commit ddf8e52

Please sign in to comment.