mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
fix(data-table): forgo "click", "click:row" events if target is a checkbox, radio button (#951)
Fixes #933
This commit is contained in:
parent
a32bcbccd7
commit
ae96fdf3d9
1 changed files with 3 additions and 2 deletions
|
@ -337,10 +337,11 @@
|
|||
? 'bx--expandable-row--hover'
|
||||
: ''}"
|
||||
on:click="{({ target }) => {
|
||||
// forgo "click", "click:row" events if target resembles an overflow menu
|
||||
// forgo "click", "click:row" events if target
|
||||
// resembles an overflow menu, a checkbox, or radio button
|
||||
if (
|
||||
[...target.classList].some((name) =>
|
||||
/^bx--overflow-menu/.test(name)
|
||||
/^bx--(overflow-menu|checkbox|radio-button)/.test(name)
|
||||
)
|
||||
) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue