-
Notifications
You must be signed in to change notification settings - Fork 73
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
fix: resizing column action causes order change in BAITable #2831
Conversation
Your org requires the Graphite merge queue for merging into mainAdd the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
8fb21cb
to
679c83c
Compare
2dac546
to
9252f49
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll move this PR to the main branch and merge it first.
9252f49
to
85f75e2
Compare
Merge activity
|
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
85f75e2
to
a888e3e
Compare
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 5.03% | 367/7294 |
🔴 | Branches | 4.4% | 221/5027 |
🔴 | Functions | 2.95% | 71/2408 |
🔴 | Lines | 4.93% | 352/7133 |
Test suite run success
100 tests passing in 13 suites.
Report generated by 🧪jest coverage report action from a888e3e
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:
isResizing
state to track when a column is being resized