Fix/ serveral bugs fixed in enterprise (#21729)

This commit is contained in:
NFish
2025-07-01 10:42:11 +08:00
committed by GitHub
parent 9ded6f6a40
commit 6013d90426
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,