We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19542f0 commit f5233bfCopy full SHA for f5233bf
core/components/molecules/tooltip/Tooltip.tsx
@@ -118,7 +118,7 @@ export const Tooltip = (props: TooltipProps): React.ReactElement => {
118
119
if (!showTooltip) {
120
// If showTooltip is false skip the Popover and return the children directly
121
- return <>{children}</>;
+ return (<>{children}</>) as React.ReactElement;
122
}
123
124
const tooltipClass = classNames({
@@ -154,7 +154,7 @@ export const Tooltip = (props: TooltipProps): React.ReactElement => {
154
{tooltipWrapper}
155
</Popover>
156
) : (
157
- <>{renderChildren}</>
+ ((<>{renderChildren}</>) as React.ReactElement)
158
);
159
160
0 commit comments