DataTable: Selection and focus loss when no custom ContextMenu is defined #3927
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When a
DataTable
does not use a customContextMenu
, 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.Reproducer
https://codesandbox.io/p/sandbox/zealous-booth-efmdpx
PrimeVue version
3.28.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Context menu clicks should not prevent default browser behaviour, unless you have a custom
ContextMenu
component attached.The text was updated successfully, but these errors were encountered: