saas-js / saas-ui

The React component library for startups, built with Chakra UI.
https://saas-ui.dev
MIT License
1.36k stars 131 forks source link

ContextMenu disables the onClick of the component its applied on #229

Closed haroonriaz-15 closed 6 months ago

haroonriaz-15 commented 6 months ago

Description

When I applied contextMenu over a box, the OnClick function of the box is not working anymore. I disabled long press gesture but the issue still persists

Link to Reproduction

No response

Steps to reproduce

  1. Create a Box from Chakra UI and add onClick function on it'
  2. Add ContextMenu over it
  3. Now Left Click on the box
  4. The onClick won't be triggered

Saas UI Version

2.6.2

Chakra UI Version

2.8.2

Browser

Google Chrome

Operating System

Additional Information

No response

linear[bot] commented 6 months ago

SUI-479 ContextMenu disables the onClick of the component its applied on

Pagebakers commented 6 months ago

Please try in latest (2.8.3), I released a couple of fixes in 2.8.2 regarding context menu.

haroonriaz-15 commented 6 months ago

Thanks. Its working now! I'll go ahead and close the issue.