Skip to content

Commit

Permalink
Merge pull request #1500 from dhis2/HOT-FIX/fix-key-in-segmented-control
Browse files Browse the repository at this point in the history
fix: li key to be unique
  • Loading branch information
flaminic authored May 10, 2024
2 parents 2814874 + 7de6dc5 commit 5b70dd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/segmented-control/src/segmented-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const SegmentedControl = ({
return (
<ul className="segmented-control" aria-label={ariaLabel}>
{options.map(({ label, value, disabled }) => (
<li key="label">
<li key={`option-${value}`}>
<button
type="button"
className={cx('segment', {
Expand Down

0 comments on commit 5b70dd2

Please sign in to comment.