{"action":"opened","issue":{"url":"https://api.github.com/repos/reactjs/react-modal/issues/579","repository_url":"https://api.github.com/repos/reactjs/react-modal","labels_url":"https://api.github.com/repos/reactjs/react-modal/issues/579/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-modal/issues/579/comments","events_url":"https://api.github.com/repos/reactjs/react-modal/issues/579/events","html_url":"https://github.com/reactjs/react-modal/issues/579","id":279812446,"number":579,"title":"Issue with Modal and redux","user":{"login":"thedrew12","id":15160724,"avatar_url":"https://avatars0.githubusercontent.com/u/15160724?v=4","gravatar_id":"","url":"https://api.github.com/users/thedrew12","html_url":"https://github.com/thedrew12","followers_url":"https://api.github.com/users/thedrew12/followers","following_url":"https://api.github.com/users/thedrew12/following{/other_user}","gists_url":"https://api.github.com/users/thedrew12/gists{/gist_id}","starred_url":"https://api.github.com/users/thedrew12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thedrew12/subscriptions","organizations_url":"https://api.github.com/users/thedrew12/orgs","repos_url":"https://api.github.com/users/thedrew12/repos","events_url":"https://api.github.com/users/thedrew12/events{/privacy}","received_events_url":"https://api.github.com/users/thedrew12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-06T16:13:37Z","updated_at":"2017-12-06T16:13:37Z","closed_at":null,"author_association":"NONE","body":"### Summary:\r\nI have a simple component that opens a modal on click and renders a button inside the modal. When the button inside is clicked it sends off a redux action which logs the user in. The issue is as soon as a successful request comes back the modal closes automatically and gets removed from the DOM even though the state prop `isOpen` is still true. If I don't go through redux and call the function directly it doesn't close the modal. I would expect the modal to stay open until a function got called to close the modal. Any ideas for why this is happening?\r\n```\r\nreturn [\r\n      <p key=\"login\" onClick={() => this.setState({ isOpen: true })}>\r\n        Login\r\n      </p>,\r\n      <ReactModal\r\n        key=\"modal\"\r\n        isOpen={this.state.isOpen}\r\n        onRequestClose={() => this.setState({ isOpen: false })}\r\n      >\r\n        <p\r\n          onClick={e => {\r\n            this.props.login()\r\n          }\r\n          }\r\n        >Login</p>\r\n      </ReactModal>\r\n]\r\n```\r\n\r\n"}}
{"actor":{"display_login":"thedrew12"}}