diff --git a/striker-ui/components/SelectWithLabel.tsx b/striker-ui/components/SelectWithLabel.tsx index eabda51a..00ed6e02 100644 --- a/striker-ui/components/SelectWithLabel.tsx +++ b/striker-ui/components/SelectWithLabel.tsx @@ -71,15 +71,20 @@ const SelectWithLabel: FC = ({ [createCheckbox, disableItem, hideItem, id], ); - const inputElement = useMemo(() => , [label]); + const selectId = useMemo(() => `${id}-select-element`, [id]); + + const inputElement = useMemo( + () => , + [id, label], + ); const labelElement = useMemo( () => label && ( - + {label} ), - [id, inputLabelProps, label], + [inputLabelProps, label, selectId], ); const menuItemElements = useMemo( () => @@ -96,7 +101,7 @@ const SelectWithLabel: FC = ({ {labelElement}