jossmac / jossmac/react-images

closeOnBackdropClick without carousel component

Open
#307 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.3k
Forks
433
PR merge metrics
No merged PRs in 30d

Description

I'm currently using the library in multiple places on my site with no issues. However when using the modal without the carousel component I can't get closeOnBackdropClick to work. I'm using the modal to display a form.

```

{this.state.formOpen ? (


X





Submit



) : null}

```

Looking in react dev tools it is set to true and and pressing the esc key closes the modal just fine. Has anyone come across this issue before?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.