From b5943db1fdad3cacba54e10ef828bc24c740f01b Mon Sep 17 00:00:00 2001 From: EReguero Date: Sun, 22 Dec 2024 15:06:13 +0100 Subject: [PATCH] fix: listbox-section props (#4369) --- .changeset/angry-boxes-wonder.md | 5 +++++ packages/components/listbox/src/listbox-section.tsx | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/angry-boxes-wonder.md diff --git a/.changeset/angry-boxes-wonder.md b/.changeset/angry-boxes-wonder.md new file mode 100644 index 0000000000..87fcae53b3 --- /dev/null +++ b/.changeset/angry-boxes-wonder.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/listbox": patch +--- + +fix listbox section items prop in html element (#4277) diff --git a/packages/components/listbox/src/listbox-section.tsx b/packages/components/listbox/src/listbox-section.tsx index 086d4d6c9d..0cef4b4abe 100644 --- a/packages/components/listbox/src/listbox-section.tsx +++ b/packages/components/listbox/src/listbox-section.tsx @@ -51,6 +51,9 @@ const ListboxSection = forwardRef<"li", ListboxSectionProps>( // the title props is already inside the rendered prop // eslint-disable-next-line @typescript-eslint/no-unused-vars title, + // removed items from props to avoid show in html element + // eslint-disable-next-line @typescript-eslint/no-unused-vars + items, ...otherProps }, _,