about summary refs log tree commit diff
path: root/src/view/com/util/Link.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/util/Link.tsx')
-rw-r--r--src/view/com/util/Link.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx
index 08536b0c3..84060ac01 100644
--- a/src/view/com/util/Link.tsx
+++ b/src/view/com/util/Link.tsx
@@ -16,7 +16,10 @@ export const Link = observer(function Link({
   children?: React.ReactNode
 }) {
   const store = useStores()
-  const onPress = () => store.nav.navigate(href)
+  const onPress = () => {
+    store.shell.closeModal() // close any active modals
+    store.nav.navigate(href)
+  }
   const onLongPress = () => {
     store.shell.openModal(new LinkActionsModel(href, title || href))
   }