mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-29 03:21:38 +03:00
fix: popper ignores the children onClick event
This commit is contained in:
parent
caa80bc857
commit
a5a5b56c6e
@ -106,6 +106,7 @@ export const Popper = ({
|
||||
{cloneElement(children, {
|
||||
ref: (dom: HTMLDivElement) => setAnchorEl(dom),
|
||||
onClick: (e: MouseEvent) => {
|
||||
children.props.onClick?.(e);
|
||||
if (!hasClickTrigger || visibleControlledByParent) {
|
||||
// @ts-ignore
|
||||
onClick?.(e);
|
||||
|
Loading…
Reference in New Issue
Block a user