{"action":"created","issue":{"url":"https://api.github.com/repos/insin/react-maskedinput/issues/79","repository_url":"https://api.github.com/repos/insin/react-maskedinput","labels_url":"https://api.github.com/repos/insin/react-maskedinput/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/insin/react-maskedinput/issues/79/comments","events_url":"https://api.github.com/repos/insin/react-maskedinput/issues/79/events","html_url":"https://github.com/insin/react-maskedinput/pull/79","id":192834877,"number":79,"title":"Can't enter more than one character in Edge browser","user":{"login":"joelove","id":5269049,"avatar_url":"https://avatars.githubusercontent.com/u/5269049?v=3","gravatar_id":"","url":"https://api.github.com/users/joelove","html_url":"https://github.com/joelove","followers_url":"https://api.github.com/users/joelove/followers","following_url":"https://api.github.com/users/joelove/following{/other_user}","gists_url":"https://api.github.com/users/joelove/gists{/gist_id}","starred_url":"https://api.github.com/users/joelove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelove/subscriptions","organizations_url":"https://api.github.com/users/joelove/orgs","repos_url":"https://api.github.com/users/joelove/repos","events_url":"https://api.github.com/users/joelove/events{/privacy}","received_events_url":"https://api.github.com/users/joelove/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-01T12:34:52Z","updated_at":"2016-12-12T20:43:34Z","closed_at":"2016-12-01T16:21:00Z","pull_request":{"url":"https://api.github.com/repos/insin/react-maskedinput/pulls/79","html_url":"https://github.com/insin/react-maskedinput/pull/79","diff_url":"https://github.com/insin/react-maskedinput/pull/79.diff","patch_url":"https://github.com/insin/react-maskedinput/pull/79.patch"},"body":"### This is a fix for this issue: https://github.com/insin/react-maskedinput/issues/75\r\n\r\nIn the end, I had to go with user agent sniffing even though it's a really ugly solution ~and will cause a breakage when Microsoft finally get their **** together~. Anything else was causing unexpected behaviour in other browsers. But it will solve the problem for 99% of users for now.\r\n\r\nI did attempt to use feature detection, but it turns out detecting built-in browser events is a really complicated process and I really didn't want to introduce Modernizr just for this.\r\n\r\nI also wasn't able to write unit tests for this because I couldn't find a way to make React DOM spoof the user agent and I couldn't find any documentation on how to manually configure PhantomJS on the fly in this test suite configuration.\r\n\r\n**Tested in**:\r\n- Mac OS X (El Capitan)\r\n  - Chrome\r\n  - Firefox\r\n  - Safari\r\n- Windows 10\r\n  - Edge\r\n  - Chrome\r\n- Android (5.1.1)\r\n  - Android browser\r\n  - Chrome\r\n- iOS (10.0.2)\r\n  - Safari\r\n  - Chrome\r\n"},"comment":{"url":"https://api.github.com/repos/insin/react-maskedinput/issues/comments/266546966","html_url":"https://github.com/insin/react-maskedinput/pull/79#issuecomment-266546966","issue_url":"https://api.github.com/repos/insin/react-maskedinput/issues/79","id":266546966,"user":{"login":"avindra","id":126848,"avatar_url":"https://avatars.githubusercontent.com/u/126848?v=3","gravatar_id":"","url":"https://api.github.com/users/avindra","html_url":"https://github.com/avindra","followers_url":"https://api.github.com/users/avindra/followers","following_url":"https://api.github.com/users/avindra/following{/other_user}","gists_url":"https://api.github.com/users/avindra/gists{/gist_id}","starred_url":"https://api.github.com/users/avindra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avindra/subscriptions","organizations_url":"https://api.github.com/users/avindra/orgs","repos_url":"https://api.github.com/users/avindra/repos","events_url":"https://api.github.com/users/avindra/events{/privacy}","received_events_url":"https://api.github.com/users/avindra/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T20:43:34Z","updated_at":"2016-12-12T20:43:34Z","body":"@HugoGiraudel  : You can add a hack to mock `navigator` on the server side to get around this. For Koa, it would be:\r\n\r\n```js\r\nglobal.navigator = { userAgent : ctx.request.headers['user-agent'] };\r\n```"}}
{"actor":{"display_login":"avindra"}}