Skip to content

Commit

Permalink
fix: Use default id generation for tile ids (#1379)
Browse files Browse the repository at this point in the history
  • Loading branch information
gethinwebster authored Jul 27, 2023
1 parent 6937b44 commit 85117c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tiles/tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ interface TileProps {
export const Tile = React.forwardRef(
({ item, selected, name, breakpoint, onChange }: TileProps, forwardedRef: React.Ref<HTMLInputElement>) => {
const internalRef = useRef<HTMLInputElement>(null);
const controlId = item.controlId || `${name}-value-${item.value}`;
const isVisualRefresh = useVisualRefresh();

const mergedRef = useMergeRefs(internalRef, forwardedRef);
Expand Down Expand Up @@ -58,7 +57,7 @@ export const Tile = React.forwardRef(
label={item.label}
description={item.description}
disabled={item.disabled}
controlId={controlId}
controlId={item.controlId}
/>
</div>
{item.image && <div className={clsx(styles.image, { [styles.disabled]: !!item.disabled })}>{item.image}</div>}
Expand Down

0 comments on commit 85117c2

Please sign in to comment.