{"action":"created","issue":{"url":"https://api.github.com/repos/brandynbennett/ember-inputmask/issues/71","repository_url":"https://api.github.com/repos/brandynbennett/ember-inputmask","labels_url":"https://api.github.com/repos/brandynbennett/ember-inputmask/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/brandynbennett/ember-inputmask/issues/71/comments","events_url":"https://api.github.com/repos/brandynbennett/ember-inputmask/issues/71/events","html_url":"https://github.com/brandynbennett/ember-inputmask/pull/71","id":318079568,"number":71,"title":"Fix fastboot support in one-way-input-mask#didReceiveAttrs","user":{"login":"scudco","id":3806,"avatar_url":"https://avatars1.githubusercontent.com/u/3806?v=4","gravatar_id":"","url":"https://api.github.com/users/scudco","html_url":"https://github.com/scudco","followers_url":"https://api.github.com/users/scudco/followers","following_url":"https://api.github.com/users/scudco/following{/other_user}","gists_url":"https://api.github.com/users/scudco/gists{/gist_id}","starred_url":"https://api.github.com/users/scudco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scudco/subscriptions","organizations_url":"https://api.github.com/users/scudco/orgs","repos_url":"https://api.github.com/users/scudco/repos","events_url":"https://api.github.com/users/scudco/events{/privacy}","received_events_url":"https://api.github.com/users/scudco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T15:22:55Z","updated_at":"2018-04-29T04:29:29Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/brandynbennett/ember-inputmask/pulls/71","html_url":"https://github.com/brandynbennett/ember-inputmask/pull/71","diff_url":"https://github.com/brandynbennett/ember-inputmask/pull/71.diff","patch_url":"https://github.com/brandynbennett/ember-inputmask/pull/71.patch"},"body":"This is just a minor change to ensure that fastboot apps can render pages with `one-way-input-mask`s on them.\r\n\r\nHere is the error I was getting when trying to use something very simple like `{{one-way-input-mask val mask='a-9-a-9'}}`\r\n\r\n```\r\nThere was an error running your app in fastboot. More info about the error:\r\n  Error: Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).\r\n```\r\n\r\nI think the right approach might be to schedule the `_changeMask` hook to run `afterRender` or something like that. I'm only submitting what I've got working for now in case anyone else is running into this issue.\r\n\r\nIt might be good to make sure all the things that touch `this.element` are protected behind something like this so that this issue wouldn't reappear if any of these private methods end up being called in the fastboot lifecycle hooks. What do you think?\r\n\r\nP.S. Thanks for writing this great wrapper library and documenting it so well in the code :)"},"comment":{"url":"https://api.github.com/repos/brandynbennett/ember-inputmask/issues/comments/385224795","html_url":"https://github.com/brandynbennett/ember-inputmask/pull/71#issuecomment-385224795","issue_url":"https://api.github.com/repos/brandynbennett/ember-inputmask/issues/71","id":385224795,"user":{"login":"brandynbennett","id":4146629,"avatar_url":"https://avatars0.githubusercontent.com/u/4146629?v=4","gravatar_id":"","url":"https://api.github.com/users/brandynbennett","html_url":"https://github.com/brandynbennett","followers_url":"https://api.github.com/users/brandynbennett/followers","following_url":"https://api.github.com/users/brandynbennett/following{/other_user}","gists_url":"https://api.github.com/users/brandynbennett/gists{/gist_id}","starred_url":"https://api.github.com/users/brandynbennett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandynbennett/subscriptions","organizations_url":"https://api.github.com/users/brandynbennett/orgs","repos_url":"https://api.github.com/users/brandynbennett/repos","events_url":"https://api.github.com/users/brandynbennett/events{/privacy}","received_events_url":"https://api.github.com/users/brandynbennett/received_events","type":"User","site_admin":false},"created_at":"2018-04-29T04:29:29Z","updated_at":"2018-04-29T04:29:29Z","author_association":"OWNER","body":"@scudco Thanks for bringing this up. We should definitely make sure this works with fastboot. I'm going to look into writing some tests to make sure it does"}}
{"actor":{"display_login":"brandynbennett"}}