Skip to content

Commit cb24fd6

Browse files
committed
Revert "make disabled prop reactive"
This reverts commit 7d4b1cc.
1 parent 3de9b65 commit cb24fd6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/Dropzone.svelte

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,17 @@
242242
resetState();
243243
}
244244
245-
$: composeHandler = fn => (disabled ? null : fn);
245+
function composeHandler(fn) {
246+
return disabled ? null : fn;
247+
}
246248
247-
$: composeKeyboardHandler = fn => (noKeyboard ? null : composeHandler(fn));
249+
function composeKeyboardHandler(fn) {
250+
return noKeyboard ? null : composeHandler(fn);
251+
}
248252
249-
$: composeDragHandler = fn => (noDrag ? null : composeHandler(fn));
253+
function composeDragHandler(fn) {
254+
return noDrag ? null : composeHandler(fn);
255+
}
250256
251257
function stopPropagation(event) {
252258
if (noDragEventsBubbling) {

0 commit comments

Comments
 (0)