dropdown icon indicating copy to clipboard operation
dropdown copied to clipboard

onVisibleChange is not fired when menu item is selected

Open kkaaddff opened this issue 4 years ago • 1 comments

onVisibleChange is not fired when menu item is selected 这个问题在现在的最新版中仍然存在 https://codesandbox.io/s/jiben-antd492-forked-jldb1?fontsize=14&hidenavigation=1&theme=dark

kkaaddff avatar Dec 08 '20 07:12 kkaaddff

` const onClick = e => { const { onOverlayClick } = props; const overlayProps = getOverlayElement().props; setTriggerVisible(false);

if (onOverlayClick) {
  onOverlayClick(e);
}
if (overlayProps.onClick) {
  overlayProps.onClick(e);
}

};

const onVisibleChange = (visible: boolean) => { const { onVisibleChange } = props; setTriggerVisible(visible); if (typeof onVisibleChange === 'function') { onVisibleChange(visible); } };`

kkaaddff avatar Dec 08 '20 07:12 kkaaddff