Closed AdrianNigro closed 9 months ago
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
Can you raise PR with the fix?
the properties are not reactive,
example: if the value of disabled changes the component doesn't change his behavior
example code: