yjose / reactjs-popup

React Popup Component - Modals,Tooltips and Menus —  All in one
https://react-popup.elazizi.com/
MIT License
1.8k stars 207 forks source link

Clicking on trigger should not cause event propagation. #354

Open jonathandsouza opened 4 months ago

jonathandsouza commented 4 months ago

Version

2.0.6

Test Case

https://codesandbox.io/p/sandbox/reactjs-popup-issue-template-forked-nkjvtd

Expected Behavior

Clicking on the trigger, should not propagate the event to the parent anchor tag, causing page navigation.

Actual Behavior

Clicking on the trigger, causes event to propagate and will cause a page navigation.

jonathandsouza commented 3 months ago

Raised a PR https://github.com/yjose/reactjs-popup/pull/355