{"action":"opened","issue":{"url":"https://api.github.com/repos/newbreedofgeek/react-stepzilla/issues/36","repository_url":"https://api.github.com/repos/newbreedofgeek/react-stepzilla","labels_url":"https://api.github.com/repos/newbreedofgeek/react-stepzilla/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/newbreedofgeek/react-stepzilla/issues/36/comments","events_url":"https://api.github.com/repos/newbreedofgeek/react-stepzilla/issues/36/events","html_url":"https://github.com/newbreedofgeek/react-stepzilla/issues/36","id":224408351,"number":36,"title":"Option preventEnterSubmission disables linebreaks in child textareas","user":{"login":"johannesengl","id":5646324,"avatar_url":"https://avatars0.githubusercontent.com/u/5646324?v=3","gravatar_id":"","url":"https://api.github.com/users/johannesengl","html_url":"https://github.com/johannesengl","followers_url":"https://api.github.com/users/johannesengl/followers","following_url":"https://api.github.com/users/johannesengl/following{/other_user}","gists_url":"https://api.github.com/users/johannesengl/gists{/gist_id}","starred_url":"https://api.github.com/users/johannesengl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannesengl/subscriptions","organizations_url":"https://api.github.com/users/johannesengl/orgs","repos_url":"https://api.github.com/users/johannesengl/repos","events_url":"https://api.github.com/users/johannesengl/events{/privacy}","received_events_url":"https://api.github.com/users/johannesengl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-26T09:49:15Z","updated_at":"2017-04-26T09:49:15Z","closed_at":null,"body":"Hi there, \r\n\r\nI just encountered an issue regarding the option preventEnterSubmission which disables enter submissions in all child inputs. I believe this behaviour isn't intended for textareas. I suggest updating the handleKeyDown method as follows: \r\n\r\n```\r\n  // handles keydown on enter being pressed in any Child component input area. in this case it goes to the next\r\n  // handles keydown on enter being pressed in any Child component input area. in this case it goes to the next\r\n  handleKeyDown(evt) {\r\n    if (evt.which === 13) {\r\n      if (!this.props.preventEnterSubmission && evt.target.type != 'textarea') {\r\n        this.next();\r\n      }\r\n      else if(evt.target.type != 'textarea') {\r\n        evt.preventDefault();\r\n      }\r\n    }\r\n  }\r\n```"}}
{"actor":{"display_login":"johannesengl"}}