File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export type TooltipProps = {
6767 theme ?: SolvedTheme
6868 children ?: ReactNode
6969 arrow ?: boolean
70- keepOpen ?: boolean
70+ open ?: boolean
7171 place ?: TooltipPlacement
7272 interactive ?: boolean
7373 activateOnHover ?: boolean
@@ -126,7 +126,7 @@ export const Tooltip: React.FC<TooltipProps> = (props) => {
126126 noDefaultStyles : noBackground ,
127127 children,
128128 arrow : drawArrow = true ,
129- keepOpen = false ,
129+ open ,
130130 place,
131131 interactive = false ,
132132 activateOnHover = true ,
@@ -136,7 +136,7 @@ export const Tooltip: React.FC<TooltipProps> = (props) => {
136136 ...cardProps
137137 } = props
138138 const [ isOpen , setIsOpen ] = useState ( false )
139- const renderTooltip = keepOpen || isOpen
139+ const renderTooltip = typeof open === 'boolean' ? open : isOpen
140140
141141 const arrowRef = useRef ( null )
142142
@@ -178,7 +178,7 @@ export const Tooltip: React.FC<TooltipProps> = (props) => {
178178 enabled : activateOnClick ,
179179 } ) ,
180180 useDismiss ( context , {
181- enabled : activateOnClick && ! keepOpen ,
181+ enabled : activateOnClick ,
182182 } ) ,
183183 ] )
184184
You can’t perform that action at this time.
0 commit comments