fix: delay clearing modal content until fade-out on public board (#151)

* fix: closing the modal on the public board page clears the content before the modal fade out animation finishes

* refactor: enhance CheckboxDropdown component to handle empty states and improve item rendering

* Update apps/web/src/views/public/board/CardModal.tsx

Co-authored-by: Henry <30578846+hjball@users.noreply.github.com>

---------

Co-authored-by: Henry <30578846+hjball@users.noreply.github.com>
This commit is contained in:
Ridham Khandar
2025-08-22 21:08:39 +05:30
committed by GitHub
parent 3233c35836
commit eb0ca9c738
2 changed files with 64 additions and 53 deletions

View File

@@ -69,17 +69,20 @@ export function CardModal({
onClick={async (e) => {
e.preventDefault();
closeModal();
try {
await router.replace(
`/${workspaceSlug}/${boardSlug}`,
undefined,
{
shallow: true,
},
);
} catch (error) {
console.error(error);
}
setTimeout(async () => {
try {
await router.replace(
`/${workspaceSlug}/${boardSlug}`,
undefined,
{
shallow: true,
},
);
} catch (error) {
console.error(error);
}
}, 400);
}}
>
<HiXMark