react-modal icon indicating copy to clipboard operation
react-modal copied to clipboard

How do I close Modal on right click in overlay?

Open CharlotteArai opened this issue 4 years ago • 6 comments

Summary:

I wish to close the modal on secondary click (right mouse click). This works in your codepen demo for v.1.6.2: https://codepen.io/claydiffrient/pen/ZBmyKz?editors=1111 But not in my own demo with v3.3.2, see here: https://codepen.io/CharlotteA/pen/PozLwNw?editors=1111

Am I missing a new prop to handle this?

Expected behavior:

Close on right-click: https://codepen.io/claydiffrient/pen/ZBmyKz?editors=1111

Link to example of issue:

Not closing on right-click: https://codepen.io/CharlotteA/pen/PozLwNw?editors=1111

Any help very much appreciated!  🤓

CharlotteArai avatar Nov 15 '20 20:11 CharlotteArai

Hi, @CharlotteArai. Right click and context menu are not implemented yet. 😞

diasbruno avatar Nov 23 '20 02:11 diasbruno

I would love to contribute.

pawan43563 avatar Sep 04 '21 20:09 pawan43563

@pawan43563 All yours, 🤠! Let me know if you need assistance with this.

diasbruno avatar Sep 08 '21 17:09 diasbruno

Is this issue still present? I would love to contribute.

ZainGulbaz avatar Aug 11 '22 06:08 ZainGulbaz

@ZainGulbaz There is #901, but it's not finished. You can open a new one and we close it. Let me know and I'll assign you.

diasbruno avatar Aug 11 '22 18:08 diasbruno

@diasbruno Yes please assign me.

ZainGulbaz avatar Aug 15 '22 07:08 ZainGulbaz