Blocking click on mini-toggle label for disabled state (#2981)

Signed-off-by: Oleg Solodkov <oleg.solodkov@ezthera.com>
This commit is contained in:
Oleg Solodkov 2023-04-14 11:36:33 +07:00 committed by GitHub
parent e96b6172e6
commit 99b6634cdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,9 @@
<span
class="mini-toggle-label"
on:click={() => {
on = !on
if (!disabled) {
on = !on
}
}}
>
<Label {label} />