Fix mobile dropdown close and draft thinking persistence

Closes #150

Closes #151
This commit is contained in:
Mohamed Boudra
2026-03-29 21:17:31 +07:00
parent fb42c8eea2
commit 04b21f089c
5 changed files with 138 additions and 19 deletions
@@ -278,7 +278,10 @@ export function DropdownMenuContent({
setModalVisible(true);
setClosing(false);
} else if (modalVisible) {
setClosing(true);
// Avoid leaving an invisible full-screen Modal mounted on native when
// the exit animation callback does not fire.
setClosing(false);
setModalVisible(false);
}
}, [open, modalVisible]);