diff --git a/app/lib/features/geckoview/features/browser/presentation/widgets/tab_preview.dart b/app/lib/features/geckoview/features/browser/presentation/widgets/tab_preview.dart index 6ec159b8..a8ff1257 100644 --- a/app/lib/features/geckoview/features/browser/presentation/widgets/tab_preview.dart +++ b/app/lib/features/geckoview/features/browser/presentation/widgets/tab_preview.dart @@ -335,6 +335,12 @@ class TabTreePreview extends HookConsumerWidget { onTap: () async { if (entity.totalTabs > 1) { await TabTreeRoute(entity.rootId).push(context); + } else if (entity.tabId != activeTabId) { + //Close first to avoid rebuilds + onClose(); + await ref + .read(tabRepositoryProvider.notifier) + .selectTab(tab.id); } }, // onDeleteAll: (host) async {