mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-25 19:58:30 +03:00
fix: broken checkbox behavior (#4509)
Signed-off-by: Eduard Aksamitov <e@euaaaio.ru>
This commit is contained in:
parent
a036f24856
commit
26306ddfa1
@ -24,7 +24,7 @@
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
|
||||
let oldChecked = checked
|
||||
$: oldChecked = checked
|
||||
|
||||
const handleValueChanged = (event: Event): void => {
|
||||
if (readonly) {
|
||||
@ -52,7 +52,7 @@
|
||||
class:checked
|
||||
on:click|stopPropagation
|
||||
>
|
||||
<input class="chBox" disabled={readonly} type="checkbox" bind:checked on:change={handleValueChanged} />
|
||||
<input class="chBox" disabled={readonly} type="checkbox" bind:checked on:change|capture={handleValueChanged} />
|
||||
<svg class="checkSVG" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">
|
||||
{#if checked}
|
||||
{#if symbol === 'minus'}
|
||||
|
Loading…
Reference in New Issue
Block a user