Answers for "antd dropdown stop propogation"

0

antd dropdown stop propogation

/* Providing the */onClick={e => e.stopPropagation()}/* callback to the 
immediate child of */<Dropdown trigger={["click"]}>/* should solve the issue.
This worked for me: */

return (
	<Dropdown trigger={["click"]} overlay={actionsMenu}>
  		<div onClick={e => e.stopPropagation()} className="action-button-container">
  			<MoreOutlined />
  		</div>
	</Dropdown>
)
Posted by: Guest on July-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language