Skip to content

Commit

Permalink
fix(Table): prevent onClick while blocking element (#2592)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjanuar authored Nov 10, 2024
1 parent 0abccab commit 9703786
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/runtime/components/data/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,11 @@ export default defineComponent({
}
function onSelect(row: TableRow) {
const selection = window.getSelection()
if (selection && selection.toString().length > 0) {
return
}
if (!$attrs.onSelect) {
return
}
Expand Down

0 comments on commit 9703786

Please sign in to comment.