Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HypertableV2: Close the filter when scrolling inside the table #204

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

Miexil
Copy link
Member

@Miexil Miexil commented Apr 26, 2024

What does this PR do?

Close the filter when scrolling inside the table

video

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Migrated touched components to Glimmer Components
  • Properly labeled

@Miexil Miexil self-assigned this Apr 26, 2024
@Miexil Miexil requested review from phndiaye and a team as code owners April 26, 2024 08:07
@Miexil Miexil requested review from OwenCoogan and aprentout and removed request for a team April 26, 2024 08:07
Copy link

linear bot commented Apr 26, 2024

Comment on lines +165 to +180
private _scrollToEnd(table: HTMLElement): void {
table.scrollLeft = table.scrollWidth;
}

private _setupInnerTableElement(table: HTMLElement): void {
table.addEventListener('scroll', () => {
this.args.handler.destroyTetherInstance();
if (table.scrollLeft === table.scrollWidth - table.clientWidth) {
this.scrollableTable = false;
} else if (!this.scrollableTable) {
this.scrollableTable = true;
}
});

this.computeScrollableTable();
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting rid of warnings here by doing this.
Warning was :

Do not use anonymous functions as arguments to debounce, once, and scheduleOnce

@Miexil Miexil merged commit 9d90686 into master Apr 26, 2024
3 checks passed
@Miexil Miexil deleted the mb/dra-265 branch April 26, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants