You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe in detail the issue you're having.
When using the Tooltip component, if I use a function as the "content" prop (eg. <Tooltip content={() => renderSomething()} />) I get a warning about expecting a ReactNode type and getting a function instead. I believe this should be covered since even the Tooltip component itself contains a check about the type of "content" prop being a function or not (https://github.com/wfp/designsystem/blob/next/src/components/Tooltip/Tooltip.js#L109).
Is this issue related to a specific component?
Tooltip
What did you expect to happen? What happened instead? What would you like to see changed?
Enrich type definition by adding "function" type.
No warning shown.
What version of the WFP UI (Carbon Design System) are you using?
@wfp/[email protected]
The text was updated successfully, but these errors were encountered:
Detailed description
The text was updated successfully, but these errors were encountered: