Search
 
SCRIPT & CODE EXAMPLE
 

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>
)
Comment

PREVIOUS NEXT
Code Example
Javascript :: Uncaught (in promise) SyntaxError: Unexpected token O in JSON at position 0 
Javascript :: js get time 
Javascript :: javascript competitive programming 
Javascript :: javascript Swapping Variables 
Javascript :: preloader 
Javascript :: axios fetch 
Javascript :: alphabet to number javascript 
Javascript :: convert currency to string javascript 
Javascript :: Array sum by function in javascript 
Javascript :: angular is not defined In AngularJS 
Javascript :: date get full year 
Javascript :: how to play background sound js 
Javascript :: how to change the background color of html in javascript 
Javascript :: how is javascript compiled 
Javascript :: get all image tags javascript 
Javascript :: sort array object 
Javascript :: header disallowed by preflight response in express 
Javascript :: javascript round number to 5 decimal places 
Javascript :: jquery parent 
Javascript :: mongodb mongoose push into nested array 
Javascript :: form.select not working react bootstrap 
Javascript :: how to submit form on changed url in function in jquery 
Javascript :: javascript get focusable elements 
Javascript :: addition of all elements of array in js 
Javascript :: javascript dump strack trace 
Javascript :: export table data to excel in jquery 
Javascript :: parsley js decimal 
Javascript :: react 18 
Javascript :: javascript remove element from object 
Javascript :: delete message discord.js 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =