1
0
Fork 0
mirror of synced 2024-06-14 00:14:39 +12:00

Disable pointer events for all components nested inside a clickable container

This commit is contained in:
Andrew Kingston 2022-08-17 15:43:42 +01:00
parent bb9146b93f
commit 750eef9231

View file

@ -28,7 +28,7 @@
<div
class={classNames}
class:clickable={onClick}
class:clickable={!!onClick}
use:styleable={$component.styles}
class:wrap
on:click={onClick}
@ -114,4 +114,7 @@
.clickable {
cursor: pointer;
}
.clickable :global(*) {
pointer-events: none;
}
</style>