Skip to content

Commit

Permalink
fix: remove parent/child constraints from navigation menu (#4634)
Browse files Browse the repository at this point in the history
Looks like parent/child constraints will work only for tags and not for
components.
  • Loading branch information
TrySound committed Dec 21, 2024
1 parent 063f1a6 commit 070c1b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk-components-react-radix/src/navigation-menu.ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export const metaNavigationMenuList: WsComponentMeta = {
component: { $eq: "NavigationMenu" },
},
{
relation: "child",
relation: "descendant",
component: { $eq: "NavigationMenuItem" },
},
],
Expand All @@ -458,7 +458,7 @@ export const metaNavigationMenuItem: WsComponentMeta = {
type: "container",
icon: ListItemIcon,
constraints: {
relation: "parent",
relation: "ancestor",
component: { $eq: "NavigationMenuList" },
},
presetStyle,
Expand Down

0 comments on commit 070c1b2

Please sign in to comment.