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: DataTable: Selection and focus loss when no custom ContextMenu is defined #3925

Merged
merged 1 commit into from
May 12, 2023
Merged

fix: DataTable: Selection and focus loss when no custom ContextMenu is defined #3925

merged 1 commit into from
May 12, 2023

Conversation

barthy-koeln
Copy link
Contributor

@barthy-koeln barthy-koeln commented May 5, 2023

Defect Fixes

When a DataTable does not use a custom ContextMenu, it still clears the user's selection.

A demonstration of the bug:
data-table-bug.webm

And with this proposed fix:
data-table-fix.webm

All custom events will work as before, but users might have to manually call the selection clear and focus methods from their own row-contextmenu listeners, which is less restrictive, but maybe a BC break.

closes #3927

@vercel
Copy link

vercel bot commented May 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
primevue ⬜️ Ignored (Inspect) May 5, 2023 9:45am

@barthy-koeln barthy-koeln changed the title fix: unused datatable context menu clears selection fix: DataTable: Selection and focus loss when no custom ContextMenu is defined May 5, 2023
@tugcekucukoglu tugcekucukoglu merged commit ecf8b7b into primefaces:master May 12, 2023
1 of 5 checks passed
@barthy-koeln barthy-koeln deleted the fix-datatable-contextmenu branch May 26, 2023 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataTable: Selection and focus loss when no custom ContextMenu is defined
2 participants