Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External change of the checked state is not triggering the animation. #17

Open
JeelRajodiya opened this issue Jul 31, 2022 · 0 comments

Comments

@JeelRajodiya
Copy link

<script lang="ts">
import Checkbox from 'svelte-checkbox';
    export let checked:boolean = false;

const updateCheckStatus = ()=>{
    checked = !checked;
}
</script>

<main>
<div >
    <span on:click={updateCheckStatus }>Form Field</span>
    <Checkbox bind:checked />
  
</div>
</main>

when I click on the Form Field text function updateCheckStatus is invoked which changes the checked state.
but the checkbox does not show any change or any animation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant