Fix/ serveral bugs fixed in enterprise (#21729)

This commit is contained in:
NFish 2025-07-01 10:42:11 +08:00 • committed by GitHub
commit 6013d90426
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 28 additions and 16 deletions

View file

@ -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,