{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/iron-overlay-behavior/issues/211","repository_url":"https://api.github.com/repos/PolymerElements/iron-overlay-behavior","labels_url":"https://api.github.com/repos/PolymerElements/iron-overlay-behavior/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/iron-overlay-behavior/issues/211/comments","events_url":"https://api.github.com/repos/PolymerElements/iron-overlay-behavior/issues/211/events","html_url":"https://github.com/PolymerElements/iron-overlay-behavior/pull/211","id":170941057,"number":211,"title":"Avoid calling `blur()` when method don't exists","user":{"login":"frncesc","id":1183816,"avatar_url":"https://avatars.githubusercontent.com/u/1183816?v=3","gravatar_id":"","url":"https://api.github.com/users/frncesc","html_url":"https://github.com/frncesc","followers_url":"https://api.github.com/users/frncesc/followers","following_url":"https://api.github.com/users/frncesc/following{/other_user}","gists_url":"https://api.github.com/users/frncesc/gists{/gist_id}","starred_url":"https://api.github.com/users/frncesc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frncesc/subscriptions","organizations_url":"https://api.github.com/users/frncesc/orgs","repos_url":"https://api.github.com/users/frncesc/repos","events_url":"https://api.github.com/users/frncesc/events{/privacy}","received_events_url":"https://api.github.com/users/frncesc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PolymerElements/iron-overlay-behavior/labels/cla:%20yes","name":"cla: yes","color":"00ff00"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-12T19:21:06Z","updated_at":"2016-08-12T20:41:47Z","closed_at":"2016-08-12T20:34:28Z","pull_request":{"url":"https://api.github.com/repos/PolymerElements/iron-overlay-behavior/pulls/211","html_url":"https://github.com/PolymerElements/iron-overlay-behavior/pull/211","diff_url":"https://github.com/PolymerElements/iron-overlay-behavior/pull/211.diff","patch_url":"https://github.com/PolymerElements/iron-overlay-behavior/pull/211.patch"},"body":"The internal method `_applyFocus` of [iron-overlay-behavior](https://github.com/PolymerElements/iron-overlay-behavior/blob/master/iron-overlay-behavior.html#L455) makes a call to `this._focusNode.blur();`.\r\n\r\nWhen `this._focusNode` has no method \"blur\" defined, this causes an exception.\r\n\r\nI just discovered that __MS Explorer 11__ and __MS Edge__ don't define any \"blur\" method on the `<svg>` element, so when used as a button calling `close()` on `iron-overlay` objects the process silently drops, making impossible to close the overlay.\r\n\r\nPlease check this plunk in Explorer or Edge:\r\nhttps://plnkr.co/edit/rKwnv4zXFWvP9GVzPeYQ?p=preview\r\n\r\nAs yo will see, the \"close\" button works as expected, while the SVG blue cross fails:\r\n(checked on SauceLabs with Windows 10 virtual machines running Explorer 11 and Edge 13)\r\n\r\nAs a workaround, I propose to modify iron-overlay-behavior, checking if `this._focusNode.blur`\r\nexists before calling it.\r\n"},"comment":{"url":"https://api.github.com/repos/PolymerElements/iron-overlay-behavior/issues/comments/239554627","html_url":"https://github.com/PolymerElements/iron-overlay-behavior/pull/211#issuecomment-239554627","issue_url":"https://api.github.com/repos/PolymerElements/iron-overlay-behavior/issues/211","id":239554627,"user":{"login":"valdrinkoshi","id":6173664,"avatar_url":"https://avatars.githubusercontent.com/u/6173664?v=3","gravatar_id":"","url":"https://api.github.com/users/valdrinkoshi","html_url":"https://github.com/valdrinkoshi","followers_url":"https://api.github.com/users/valdrinkoshi/followers","following_url":"https://api.github.com/users/valdrinkoshi/following{/other_user}","gists_url":"https://api.github.com/users/valdrinkoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/valdrinkoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valdrinkoshi/subscriptions","organizations_url":"https://api.github.com/users/valdrinkoshi/orgs","repos_url":"https://api.github.com/users/valdrinkoshi/repos","events_url":"https://api.github.com/users/valdrinkoshi/events{/privacy}","received_events_url":"https://api.github.com/users/valdrinkoshi/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T20:41:47Z","updated_at":"2016-08-12T20:41:47Z","body":"Here the issue I filed https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/8479637/"}}
{"actor":{"display_login":"valdrinkoshi"}}