{"action":"created","issue":{"url":"https://api.github.com/repos/DockYard/ember-one-way-controls/issues/112","repository_url":"https://api.github.com/repos/DockYard/ember-one-way-controls","labels_url":"https://api.github.com/repos/DockYard/ember-one-way-controls/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/DockYard/ember-one-way-controls/issues/112/comments","events_url":"https://api.github.com/repos/DockYard/ember-one-way-controls/issues/112/events","html_url":"https://github.com/DockYard/ember-one-way-controls/issues/112","id":172940645,"number":112,"title":"sanitizeInput not working for textarea","user":{"login":"alexmiddeleer","id":5400639,"avatar_url":"https://avatars.githubusercontent.com/u/5400639?v=3","gravatar_id":"","url":"https://api.github.com/users/alexmiddeleer","html_url":"https://github.com/alexmiddeleer","followers_url":"https://api.github.com/users/alexmiddeleer/followers","following_url":"https://api.github.com/users/alexmiddeleer/following{/other_user}","gists_url":"https://api.github.com/users/alexmiddeleer/gists{/gist_id}","starred_url":"https://api.github.com/users/alexmiddeleer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexmiddeleer/subscriptions","organizations_url":"https://api.github.com/users/alexmiddeleer/orgs","repos_url":"https://api.github.com/users/alexmiddeleer/repos","events_url":"https://api.github.com/users/alexmiddeleer/events{/privacy}","received_events_url":"https://api.github.com/users/alexmiddeleer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-24T12:39:09Z","updated_at":"2016-08-24T12:41:44Z","closed_at":null,"body":"Hi there, \r\n\r\nI tried using this addon to create a textarea that I can sanitize on the fly, but while my sanitize function fires and returns a new value, it is unable to modify the visible content of the textarea on the fly. The value attribute and the parent component's property that it's bound to are being modified correctly, but the text the user sees doesn't change.\r\n\r\nI think this may be impossible thanks to browser limitations around textarea elements, but I figured if anyone had come across it, perhaps you had.\r\n\r\n```\r\n  {{one-way-textarea\r\n      contactRequest.explanation_text\r\n      rows=4\r\n      update=(action (mut contactRequest.explanation_text))\r\n      sanitizeInput=(action \"limitInput\")\r\n      placeholder=(t 'contactRequestDialog.explanation')\r\n      standardizedMaxLength=maxExplanationLength\r\n      }}\r\n\r\n...\r\n\r\n    limitInput(value) {\r\n      let maxLen = 10;\r\n      if ((typeof maxLen === 'number') && value && value.length && (value.length > maxLen)) {\r\n        return value.substr(0, maxLen);\r\n      }\r\n      return value;\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/DockYard/ember-one-way-controls/issues/comments/242048523","html_url":"https://github.com/DockYard/ember-one-way-controls/issues/112#issuecomment-242048523","issue_url":"https://api.github.com/repos/DockYard/ember-one-way-controls/issues/112","id":242048523,"user":{"login":"martndemus","id":903637,"avatar_url":"https://avatars.githubusercontent.com/u/903637?v=3","gravatar_id":"","url":"https://api.github.com/users/martndemus","html_url":"https://github.com/martndemus","followers_url":"https://api.github.com/users/martndemus/followers","following_url":"https://api.github.com/users/martndemus/following{/other_user}","gists_url":"https://api.github.com/users/martndemus/gists{/gist_id}","starred_url":"https://api.github.com/users/martndemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martndemus/subscriptions","organizations_url":"https://api.github.com/users/martndemus/orgs","repos_url":"https://api.github.com/users/martndemus/repos","events_url":"https://api.github.com/users/martndemus/events{/privacy}","received_events_url":"https://api.github.com/users/martndemus/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T12:41:44Z","updated_at":"2016-08-24T12:41:44Z","body":"Yeah, I'm going to deprecate sanitize input, you should sanitize the input on the update callback instead. See my suggestion on #103."}}
{"actor":{"display_login":"martndemus"}}