We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the properties are not reactive,
example: if the value of disabled changes the component doesn't change his behavior
example code:
<script> import Dropzone from 'svelte-file-dropzone/Dropzone.svelte' import { onMount } from 'svelte' export let disabled = false onMount(async () => { if (condition) disabled = true }) </script> <Dropzone ... {disabled} ></Dropzone>
The text was updated successfully, but these errors were encountered:
Also experiencing this issue, looks to be the way the event handler functions are 'composed'
function composeHandler(fn) { return disabled ? null : fn; } <div ... on:click={composeHandler(onClickCb)} ... />
In this example, if disabled is false initially, the handler function will always be null
disabled
null
Sorry, something went wrong.
Can you raise PR with the fix?
Successfully merging a pull request may close this issue.
the properties are not reactive,
example: if the value of disabled changes the component doesn't change his behavior
example code:
The text was updated successfully, but these errors were encountered: