CheckboxList, Modal, Select, & .link-group fixes

This commit is contained in:
venashial
2022-07-01 17:20:08 -07:00
parent c8a2fb92d2
commit 4c7fc79843
6 changed files with 20 additions and 7 deletions

View File

@@ -17,9 +17,18 @@
export let defaultData: Record<string, any> = {}
export let data: Record<string, any> = defaultData
$: if (open === true && typeof window !== 'undefined') {
setTimeout(() => {
window.dispatchEvent(new Event('resize'))
}, 300)
}
$: if (open === false) {
data = defaultData
}
function close() {
open = false
data = defaultData
}
function trigger() {