Wizard: Fix "button in a button" warning
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.
This commit is contained in:
parent
f1bce4b3ba
commit
10f0c92410
1 changed files with 1 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue