From 35f776d38ccaad7e796b4711e516b81f9af4dafb Mon Sep 17 00:00:00 2001 From: miquelvir <41950283+miquelvir@users.noreply.github.com> Date: Sat, 21 Oct 2023 16:09:57 +0200 Subject: [PATCH] Fix combobox examples using labels as value (#1788) Fix #1785 --- apps/www/content/docs/components/combobox.mdx | 1 + apps/www/registry/default/example/combobox-demo.tsx | 1 + apps/www/registry/default/example/combobox-dropdown-menu.tsx | 1 + apps/www/registry/default/example/combobox-popover.tsx | 1 + apps/www/registry/new-york/example/combobox-demo.tsx | 1 + apps/www/registry/new-york/example/combobox-dropdown-menu.tsx | 1 + apps/www/registry/new-york/example/combobox-popover.tsx | 1 + 7 files changed, 7 insertions(+) diff --git a/apps/www/content/docs/components/combobox.mdx b/apps/www/content/docs/components/combobox.mdx index 7f8b537f21..0f3166bb82 100644 --- a/apps/www/content/docs/components/combobox.mdx +++ b/apps/www/content/docs/components/combobox.mdx @@ -85,6 +85,7 @@ export function ComboboxDemo() { {frameworks.map((framework) => ( { setValue(currentValue === value ? "" : currentValue) setOpen(false) diff --git a/apps/www/registry/default/example/combobox-demo.tsx b/apps/www/registry/default/example/combobox-demo.tsx index 3e55e3f282..b16ad8fd7b 100644 --- a/apps/www/registry/default/example/combobox-demo.tsx +++ b/apps/www/registry/default/example/combobox-demo.tsx @@ -68,6 +68,7 @@ export default function ComboboxDemo() { {frameworks.map((framework) => ( { setValue(currentValue === value ? "" : currentValue) setOpen(false) diff --git a/apps/www/registry/default/example/combobox-dropdown-menu.tsx b/apps/www/registry/default/example/combobox-dropdown-menu.tsx index ae135bcf00..de1a35afba 100644 --- a/apps/www/registry/default/example/combobox-dropdown-menu.tsx +++ b/apps/www/registry/default/example/combobox-dropdown-menu.tsx @@ -83,6 +83,7 @@ export default function ComboboxDropdownMenu() { {labels.map((label) => ( { setLabel(value) setOpen(false) diff --git a/apps/www/registry/default/example/combobox-popover.tsx b/apps/www/registry/default/example/combobox-popover.tsx index 74345a78d7..aacb34dc51 100644 --- a/apps/www/registry/default/example/combobox-popover.tsx +++ b/apps/www/registry/default/example/combobox-popover.tsx @@ -95,6 +95,7 @@ export default function ComboboxPopover() { {statuses.map((status) => ( { setSelectedStatus( statuses.find((priority) => priority.value === value) || diff --git a/apps/www/registry/new-york/example/combobox-demo.tsx b/apps/www/registry/new-york/example/combobox-demo.tsx index 7daef35e1f..43545503a6 100644 --- a/apps/www/registry/new-york/example/combobox-demo.tsx +++ b/apps/www/registry/new-york/example/combobox-demo.tsx @@ -68,6 +68,7 @@ export default function ComboboxDemo() { {frameworks.map((framework) => ( { setValue(currentValue === value ? "" : currentValue) setOpen(false) diff --git a/apps/www/registry/new-york/example/combobox-dropdown-menu.tsx b/apps/www/registry/new-york/example/combobox-dropdown-menu.tsx index 202164ccb0..c27d219e92 100644 --- a/apps/www/registry/new-york/example/combobox-dropdown-menu.tsx +++ b/apps/www/registry/new-york/example/combobox-dropdown-menu.tsx @@ -75,6 +75,7 @@ export default function ComboboxDropdownMenu() { {labels.map((label) => ( { setLabel(value) setOpen(false) diff --git a/apps/www/registry/new-york/example/combobox-popover.tsx b/apps/www/registry/new-york/example/combobox-popover.tsx index ade1658b1e..adfe49e44e 100644 --- a/apps/www/registry/new-york/example/combobox-popover.tsx +++ b/apps/www/registry/new-york/example/combobox-popover.tsx @@ -69,6 +69,7 @@ export default function ComboboxPopover() { {statuses.map((status) => ( { setSelectedStatus( statuses.find((priority) => priority.value === value) ||