Stop checkbox click propogation (#3802)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-10-06 16:59:36 +06:00 committed by GitHub
parent b8fbcc695e
commit a4e8a2d91b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,7 @@
class:positive={kind === 'positive'}
class:readonly
class:checked
on:click|stopPropagation
>
<input class="chBox" disabled={readonly} type="checkbox" bind:checked on:change={handleValueChanged} />
<svg class="checkSVG" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">