fix(OverflowMenu): add stopPropagation call to handleClick method#9816
Conversation
|
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: 2004de6 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/615f109d022e8400072eb3bb 😎 Browse the preview: https://deploy-preview-9816--carbon-react-next.netlify.app |
|
DCO Assistant Lite bot All contributors have signed the DCO. |
|
I have read the DCO document and I hereby sign the DCO. |
|
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 2004de6 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/615f109df36def00080c9262 😎 Browse the preview: https://deploy-preview-9816--carbon-elements.netlify.app |
|
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 2004de6 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/615f109d0c6f2600082609be 😎 Browse the preview: https://deploy-preview-9816--carbon-components-react.netlify.app |
Closes #9744
To fix the issue I added an event.stopPropagation() call to the handleClick method in OverflowMenu which stops it from happening. The event method appears to prevent propagation and bubbling up of events which is probably what happens with the click in OverflowMenu.
I have also added a unit test.
Thanks!