diff --git a/.changeset/lovely-falcons-hear.md b/.changeset/lovely-falcons-hear.md new file mode 100644 index 000000000..19c7f626f --- /dev/null +++ b/.changeset/lovely-falcons-hear.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +Set key before spreading prop in some form components. diff --git a/core/components/ui/pick-list/pick-list.tsx b/core/components/ui/pick-list/pick-list.tsx index bcc1c51a4..92eb7fe7d 100644 --- a/core/components/ui/pick-list/pick-list.tsx +++ b/core/components/ui/pick-list/pick-list.tsx @@ -36,7 +36,11 @@ const PickList = forwardRef, Props>( const { defaultImage, label, value, onMouseEnter, ...itemProps } = item; return ( -
+
{Boolean(defaultImage) && ( , Pr return ( {item.label} diff --git a/core/components/ui/select/select.tsx b/core/components/ui/select/select.tsx index 2f03d9826..2cdd0ebb7 100644 --- a/core/components/ui/select/select.tsx +++ b/core/components/ui/select/select.tsx @@ -64,11 +64,11 @@ const Select = forwardRef, Props>( return ( {label} diff --git a/core/components/ui/swatch/swatch.tsx b/core/components/ui/swatch/swatch.tsx index 38e4329e4..69524cbcc 100644 --- a/core/components/ui/swatch/swatch.tsx +++ b/core/components/ui/swatch/swatch.tsx @@ -34,9 +34,9 @@ const Swatch = forwardRef, Props>( return (