mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
Merge pull request #26771 from overleaf/td-tooltip-click-trigger
Make OLTooltip with click trigger work GitOrigin-RevId: e4b976255dd514af0cfa199b9bd6815b3a8a09ef
This commit is contained in:
committed by
Copybot
parent
c10b95ae06
commit
23403a7ef2
@@ -100,9 +100,11 @@ function Tooltip({
|
||||
show={show}
|
||||
onToggle={setShow}
|
||||
>
|
||||
{cloneElement(children, {
|
||||
onClick: callFnsInSequence(children.props.onClick, hideTooltip),
|
||||
})}
|
||||
{overlayProps?.trigger === 'click'
|
||||
? children
|
||||
: cloneElement(children, {
|
||||
onClick: callFnsInSequence(children.props.onClick, hideTooltip),
|
||||
})}
|
||||
</OverlayTrigger>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user