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
Seems like undefined means defer to Tooltip's internal state i.e. show the tooltip on hover, hide on blur. Whereas passing in true/false is forcing the Tooltip's state from outside. I've fixed the place where I spotted this on web and will close this issue.
Summary
When you pass a const whose value is
undefined
into theactive
prop of a<Tooltip>
, the tooltip will appear even though it shouldn't.Expected behavior
undefined
is falsy so passingundefined
toactive
should lead to the tooltip not showing.Actual behavior
Tooltip shows up a const with value
undefined
is passed into itsactive
prop.Steps to reproduce
Link to sandbox
Are you using React components?
Yes
Polaris version number
13.9.0
Browser
Chrome
Device
MacOS
The text was updated successfully, but these errors were encountered: