React-modal: Modal opened by using mouse right click was not closed even if I clicked ModalPortal.

Created on 9 Jan 2018  路  4Comments  路  Source: reactjs/react-modal

React-modal is not closed at first click on Linux.
If Modal is opened by mouse right click like a contextmenu, the modal is closed by twice clicking.
A modal that I opened as mouse left click is normal.
And the strange situation is broken only on _Linux_.

Steps to reproduce:

  1. click the button using mouse right click.
  2. click a background using mouse left click. The modal is not closed.
  3. click a background using mouse left click again. Then the modal is closed.

Expected behavior:

I need to close it at once although I opened a modal using mouse right click.

Link to example of issue:

this is sample code

Additional notes:

Thank you for your project.

bug

All 4 comments

This is a very curious scenario. It is also reproducible on Safari (OS X).

It is normal until version 2.3.3.

Thanks. I'll check if something has changed on the handlers from 2.3.3..latest.

Check the pull request.
I added some code.
I don鈥檛 know if that is right.
Anyway I hope to fixed soon.
Cheer!

Was this page helpful?
0 / 5 - 0 ratings