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

Resizing column action causes order change in BAITable #2830

Closed
yomybaby opened this issue Nov 7, 2024 · 0 comments · Fixed by #2831
Closed

Resizing column action causes order change in BAITable #2830

yomybaby opened this issue Nov 7, 2024 · 0 comments · Fixed by #2831
Assignees
Labels
area:ux UI / UX issue.

Comments

@yomybaby
Copy link
Member

yomybaby commented Nov 7, 2024

When resizing a column in BAITable, the order of items changes unexpectedly. This issue needs to be addressed to maintain the intended order during column resizing.

@yomybaby yomybaby added the area:ux UI / UX issue. label Nov 7, 2024
@yomybaby yomybaby self-assigned this Nov 7, 2024
@yomybaby yomybaby linked a pull request Nov 8, 2024 that will close this issue
agatha197 pushed a commit that referenced this issue Nov 11, 2024
Resolves #2830

Prevents column sorting when resizing columns in BAITable

This PR fixes an issue where users could accidentally trigger column sorting while resizing table columns. It adds a debounced resize state check that temporarily disables click events during and shortly after column resizing operations.

**Implementation details:**
- Added `isResizing` state to track when a column is being resized
- Implemented a 100ms debounced version of the resize state
- Modified click handler to prevent column sorting when resize is in progress
- Preserved original click behavior when not resizing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ux UI / UX issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant