{"action":"created","issue":{"url":"https://api.github.com/repos/szymonkaliski/react-window-mixins/issues/2","labels_url":"https://api.github.com/repos/szymonkaliski/react-window-mixins/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/szymonkaliski/react-window-mixins/issues/2/comments","events_url":"https://api.github.com/repos/szymonkaliski/react-window-mixins/issues/2/events","html_url":"https://github.com/szymonkaliski/react-window-mixins/issues/2","id":98002477,"number":2,"title":"onBeforeUnload being called but not stopping browser from navigating away","user":{"login":"tnrich","id":2730609,"avatar_url":"https://avatars.githubusercontent.com/u/2730609?v=3","gravatar_id":"","url":"https://api.github.com/users/tnrich","html_url":"https://github.com/tnrich","followers_url":"https://api.github.com/users/tnrich/followers","following_url":"https://api.github.com/users/tnrich/following{/other_user}","gists_url":"https://api.github.com/users/tnrich/gists{/gist_id}","starred_url":"https://api.github.com/users/tnrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnrich/subscriptions","organizations_url":"https://api.github.com/users/tnrich/orgs","repos_url":"https://api.github.com/users/tnrich/repos","events_url":"https://api.github.com/users/tnrich/events{/privacy}","received_events_url":"https://api.github.com/users/tnrich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-29T18:40:59Z","updated_at":"2015-08-21T06:16:28Z","closed_at":"2015-08-21T06:16:28Z","body":"Hey there, I'm having an issue with the onBeforeUnload functionality. When I run the following code using webpack's dev server, the console logs \"onBeforeUnload hit!\" when I navigate away from the page, but it doesn't actually prompt me to confirm leaving. \r\n\r\nAny chance you know why that might be? Is it something to do with webpack perhaps, or have other people also experienced this issue not using webpack?\r\n\r\nHere's a simplified version of the code I'm running:\r\n\r\n```javascript\r\nvar React = require('react');\r\nvar OnUnload = require(\"react-window-mixins\").OnUnload;\r\n\r\n\r\nvar App = React.createClass({\r\n  mixins: [OnUnload],\r\n  \r\n  onBeforeUnload: function() {\r\n    console.log('onBeforeUnload hit!');\r\n    return 'Are you sure you want to leave the page?';\r\n  },\r\n \r\n      \r\n    return (\r\n      <div overflow='scroll'>\r\n            \r\n      </div>\r\n    );\r\n  }\r\n});\r\n\r\nReact.render(<App tree={baobabTree}/>, document.body);\r\n\r\n```\r\n\r\nThanks!\r\nThomas"},"comment":{"url":"https://api.github.com/repos/szymonkaliski/react-window-mixins/issues/comments/133300279","html_url":"https://github.com/szymonkaliski/react-window-mixins/issues/2#issuecomment-133300279","issue_url":"https://api.github.com/repos/szymonkaliski/react-window-mixins/issues/2","id":133300279,"user":{"login":"tnrich","id":2730609,"avatar_url":"https://avatars.githubusercontent.com/u/2730609?v=3","gravatar_id":"","url":"https://api.github.com/users/tnrich","html_url":"https://github.com/tnrich","followers_url":"https://api.github.com/users/tnrich/followers","following_url":"https://api.github.com/users/tnrich/following{/other_user}","gists_url":"https://api.github.com/users/tnrich/gists{/gist_id}","starred_url":"https://api.github.com/users/tnrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnrich/subscriptions","organizations_url":"https://api.github.com/users/tnrich/orgs","repos_url":"https://api.github.com/users/tnrich/repos","events_url":"https://api.github.com/users/tnrich/events{/privacy}","received_events_url":"https://api.github.com/users/tnrich/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T06:16:28Z","updated_at":"2015-08-21T06:16:28Z","body":"Seems like it is just an osx thing."}}