Skip to content

Commit

Permalink
Wizard: Fix "button in a button" warning
Browse files Browse the repository at this point in the history
This adds a component prop to the expandable button, solving the `Warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>.` warning that was repeatedly printed to the test output.
  • Loading branch information
regexowl committed Sep 2, 2024
1 parent f1bce4b commit 10f0c92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const Review = ({ snapshottingEnabled }: { snapshottingEnabled: boolean }) => {
component={TextListItemVariants.dt}
className="pf-u-min-width pf-v5-u-text-align-left"
>
<Button variant="link" isInline>
<Button variant="link" component="span" isInline>
{label}
</Button>
</TextListItem>
Expand Down

0 comments on commit 10f0c92

Please sign in to comment.