mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: observer
This commit is contained in:
1 parent
9c362e99b0
commit
b66740faab
2 files changed
+8
-4
No files matched your search
@@ -29,13 +29,15 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
observer.observe(element, { childList: true });
|
||||
});
|
||||
|
||||
onDestroy(() => {
|
||||
observer.disconnect();
|
||||
});
|
||||
|
||||
$: if (element) {
|
||||
observer.observe(element, { childList: true });
|
||||
}
|
||||
</script>
|
||||
|
||||
<RadioBoxes elements={methods} total={methods?.length} variableName="$id" name="payment" bind:group>
|
||||
|
||||
@@ -55,14 +55,16 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
observer.observe(element, { childList: true });
|
||||
});
|
||||
|
||||
onDestroy(() => {
|
||||
observer.disconnect();
|
||||
document.documentElement.classList.remove('u-overflow-hidden');
|
||||
});
|
||||
|
||||
$: if (element) {
|
||||
observer.observe(element, { childList: true });
|
||||
}
|
||||
</script>
|
||||
|
||||
<FakeModal bind:show title="Add payment method" bind:error onSubmit={handleSubmit}>
|
||||
|
||||
Reference in new issue
Block a user