Skip to content

Commit 1576581

Browse files
authored
fix(protocol-designer): only show tooltip if confirm button disabled (#16975)
On the WizardBody component used for creating a new protocol file, we optionally pass a tooltip to be shown when hovering the confirm button if it is disabled. This PR fixes a bug where the tooltip showed on hover even if the button is enabled.
1 parent 36487d8 commit 1576581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocol-designer/src/pages/CreateNewProtocolWizard/WizardBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export function WizardBody(props: WizardBodyProps): JSX.Element {
160160
width="8.5625rem"
161161
/>
162162
</Flex>
163-
{tooltipOnDisabled != null ? (
163+
{tooltipOnDisabled != null && disabled ? (
164164
<Tooltip tooltipProps={tooltipProps}>{tooltipOnDisabled}</Tooltip>
165165
) : null}
166166
</Flex>

0 commit comments

Comments
 (0)