Is there a way to hide the OverlayTrigger
/Tooltip
element by default?
eg. overlay={this.state.show ? <Tooltip>showing</Tooltip> : null}
works but throws a warning on console:
The prop
overlay
is marked as required inOverlayTrigger
, but its value isnull
Would this be the only way?
{!this.state.show ? {component} :
<OverlayTrigger ...>
{component}
</OverlayTrigger>
}
overlay={this.state.show ? <Tooltip>showing</Tooltip> : null}
. – Embolicoverlay
is marked as required inOverlayTrigger
, but its value isnull
" – Fabiolafabiolasnull
– Timbal''
, with nothing at all it showsCannot read property 'props' of null at OverlayTrigger.render
– Fabiolafabiolas