-
Notifications
You must be signed in to change notification settings - Fork 85
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: handle focus button mode columns for reordering #7273
fix: handle focus button mode columns for reordering #7273
Conversation
The original reordering issue appears to have been fixed by #7274. The fact that header cells had focus button divs was a regression. Do we still need this PR? I guess the change that unskips the test is still needed. |
I would say it is still relevant because it still fixes the reordering issue when the drop is on the body cells. |
Good point, thanks. |
Co-authored-by: Sergey Vinogradov <[email protected]>
03c8855
to
4dde741
Compare
Co-authored-by: Sergey Vinogradov <[email protected]>
Co-authored-by: Sergey Vinogradov <[email protected]>
|
* fix: handle focus button mode columns for reordering * Update packages/grid/src/vaadin-grid-column-reordering-mixin.js Co-authored-by: Sergey Vinogradov <[email protected]> * chore: fix format * test: revert skipped tests that pass with the fix * test: add test for focus button mode column reordering * test: add test for reordering by dropping column on body cells * test: add test for focus button mode column reordering * test: remove duplicate test * Update packages/grid/src/vaadin-grid-column-reordering-mixin.js Co-authored-by: Sergey Vinogradov <[email protected]> * Update packages/grid/test/column-reordering.common.js Co-authored-by: Sergey Vinogradov <[email protected]> --------- Co-authored-by: Sergey Vinogradov <[email protected]>
This ticket/PR has been released with Vaadin 24.4.0.alpha20 and is also targeting the upcoming stable 24.4.0 version. |
Description
This is not to a GridPro edit column issue, but can also be reproduced using regular columns with
_focusButtonMode
property. When focus button mode is used, the cell is content is wrapped into a div. Because of this, the cell from point is not correctly determined during tracking events.This PR adds another clause for extracting the cell from point, which enables reordering focus button mode columns.
Fixes #7229
Type of change
Checklist