Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #antd #dropdown #stop #propogation
ADD COMMENT
Topic
Name
9+2 =