diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte index 09e8948407..ad1b54d700 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/PathTree.svelte @@ -9,6 +9,7 @@ import ComponentTree from "./ComponentTree.svelte" import NavItem from "components/common/NavItem.svelte" import ScreenDropdownMenu from "./ScreenDropdownMenu.svelte" + import { get } from "svelte/store" const ROUTE_NAME_MAP = { "/": { @@ -56,13 +57,20 @@ screen => !searchString || screen.route.includes(searchString) ) } + + const toggleManuallyOpened = () => { + if (get(screenSearchString)) { + return + } + routeManuallyOpened = !routeManuallyOpened + } {#if !noSearchMatch} (routeManuallyOpened = !routeManuallyOpened)} + on:click={toggleManuallyOpened} opened={routeOpened} {border} withArrow={route.subpaths} />