reshaped icon indicating copy to clipboard operation
reshaped copied to clipboard

Preventing default and stopping propogation

Open chrismcv opened this issue 6 months ago • 2 comments

Is your feature request related to a problem? Please describe. I find I'm having to add a lot of e.stopPropagation() or e.preventDefault() on Buttons, MenuItems and DropDownMenu's.

Describe the solution you'd like e.g. image I have an Accordian, with a Dropdown Menu in the header, I handle onClick by triggering an action, and the Accordian collapses without a stopPropagation. It also regularly causes modals to trigger close etc.

I'd like MenuItem/Button/Actionable/DropDownItems to call preventDefault before triggering the onClick event to the consuming component.

Describe alternatives you've considered I'm considering forking components to add this in by default, but I'd rather not have to.

chrismcv avatar Aug 22 '24 09:08 chrismcv