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

Fix DatagridConfigurable editor allows to drag fields outside its list #9351

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Oct 11, 2023

Problem

When configuring the DatagridConfigurable using its editor, one can drag and drop a field outside the list of fields (for instance below the button)

image

Solution

Wrap the items list in a ul element and double check users drop the column inside it

Copy link
Contributor

@slax57 slax57 left a comment

Choose a reason for hiding this comment

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

Seems mostly OK, but I ran across I weird issue.
If you still drop the item below the buttons, then visually the item is moved to the latest position in the list, but the column is actually not moved in the Datagrid.

Capture.video.2023-10-12.10.49.05.mp4

And it you repeat that multiple times, then afterwards the component is completely broken and columns no longer match the order of the inspector.

Copy link
Contributor

@slax57 slax57 left a comment

Choose a reason for hiding this comment

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

All good to me, WD!

@slax57 slax57 added this to the 4.14.6 milestone Oct 12, 2023
@slax57 slax57 merged commit 0de8d33 into master Oct 12, 2023
9 checks passed
@slax57 slax57 deleted the fix-datagrid-configurable-fields-selector-drag-drop branch October 12, 2023 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants