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 }, _,