fix(Table): prevent onClick while blocking element (#2592)

This commit is contained in:
kyyy
2024-11-10 22:59:34 +07:00
committed by GitHub
parent 0abccabc26
commit 97037864b3

View File

@@ -369,6 +369,11 @@ export default defineComponent({
} }
function onSelect(row: TableRow) { function onSelect(row: TableRow) {
const selection = window.getSelection()
if (selection && selection.toString().length > 0) {
return
}
if (!$attrs.onSelect) { if (!$attrs.onSelect) {
return return
} }