Open BCsabaEngine opened 1 week ago
Shouldn't it be export let inProgress = true;
?
<Input disabled={inProgress} />
works the same mode, but Toggle not.
The inProgress value comes from outside (parent form saving state), but Toggle cannot use it from variable, just <Toggle disabled={true} />
constant works.
This is a working workaround but I should use the proper boolean mode
{#if inProgress}
<Toggle bind:checked disabled={true} />
{:else}
<Toggle bind:checked disabled={false} />
{/if}
Describe the bug
I would like to set Toggle disabled status when sending in a form. (Input and Textarea works). I can enabled it with {disabled} property, but cannot at runtime.
Reproduction
not works, cannot set disabled from outside.
Flowbite version and System Info