I\'m trying to create a modal in React JS
I have one outter div which is the whole body and I have I inner div. I want to apply the function to close the modal if it
Attach a function to the inner div which stops propagation.
function stopPropagation(e) { e.stopPropagation(); }
In your case Does this help you: ReactJS SyntheticEvent stopPropagation() only works with React events? 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Does this help you: ReactJS SyntheticEvent stopPropagation() only works with React events? 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
Does this help you: ReactJS SyntheticEvent stopPropagation() only works with React events?