Fix/ serveral bugs fixed in enterprise (#21729)
This commit is contained in:
parent
9ded6f6a40
commit
6013d90426
7 changed files with 28 additions and 16 deletions
|
|
@ -3,6 +3,7 @@ import { Fragment, cloneElement, useRef } from 'react'
|
|||
import cn from '@/utils/classnames'
|
||||
|
||||
export type HtmlContentProps = {
|
||||
open?: boolean
|
||||
onClose?: () => void
|
||||
onClick?: () => void
|
||||
}
|
||||
|
|
@ -100,7 +101,8 @@ export default function CustomPopover({
|
|||
}
|
||||
>
|
||||
{cloneElement(htmlContent as React.ReactElement, {
|
||||
onClose: () => onMouseLeave(open),
|
||||
open,
|
||||
onClose: close,
|
||||
...(manualClose
|
||||
? {
|
||||
onClick: close,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue