{"action":"created","issue":{"url":"https://api.github.com/repos/webscopeio/react-textarea-autocomplete/issues/112","repository_url":"https://api.github.com/repos/webscopeio/react-textarea-autocomplete","labels_url":"https://api.github.com/repos/webscopeio/react-textarea-autocomplete/issues/112/labels{/name}","comments_url":"https://api.github.com/repos/webscopeio/react-textarea-autocomplete/issues/112/comments","events_url":"https://api.github.com/repos/webscopeio/react-textarea-autocomplete/issues/112/events","html_url":"https://github.com/webscopeio/react-textarea-autocomplete/issues/112","id":393896817,"node_id":"MDU6SXNzdWUzOTM4OTY4MTc=","number":112,"title":"Prevent form submission on Enter when autocomplete is open","user":{"login":"O4epegb","id":12836237,"node_id":"MDQ6VXNlcjEyODM2MjM3","avatar_url":"https://avatars3.githubusercontent.com/u/12836237?v=4","gravatar_id":"","url":"https://api.github.com/users/O4epegb","html_url":"https://github.com/O4epegb","followers_url":"https://api.github.com/users/O4epegb/followers","following_url":"https://api.github.com/users/O4epegb/following{/other_user}","gists_url":"https://api.github.com/users/O4epegb/gists{/gist_id}","starred_url":"https://api.github.com/users/O4epegb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/O4epegb/subscriptions","organizations_url":"https://api.github.com/users/O4epegb/orgs","repos_url":"https://api.github.com/users/O4epegb/repos","events_url":"https://api.github.com/users/O4epegb/events{/privacy}","received_events_url":"https://api.github.com/users/O4epegb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-24T15:09:52Z","updated_at":"2018-12-25T12:13:55Z","closed_at":null,"author_association":"NONE","body":"Is it possible to prevent form submission on Enter key press when autocomplete is open?\r\n\r\nI couldn't find a way or hack to do this! Basically it means that form submits instead of selecting needed autocomplete value. I know that you can press Tab to autocomplete but Enter is more intuitive I think and most users press enter when selecting autocomplete suggestions.\r\n\r\nWould be cool to have a prop to block event propagation, or maybe some state callback so you could stop submission by yourself if autocomplete is open.\r\n\r\nWhat do you think?\r\n\r\nP.S. did not tried v.4 yet, maybe it is possible there? "},"comment":{"url":"https://api.github.com/repos/webscopeio/react-textarea-autocomplete/issues/comments/449845578","html_url":"https://github.com/webscopeio/react-textarea-autocomplete/issues/112#issuecomment-449845578","issue_url":"https://api.github.com/repos/webscopeio/react-textarea-autocomplete/issues/112","id":449845578,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTg0NTU3OA==","user":{"login":"jukben","id":8135252,"node_id":"MDQ6VXNlcjgxMzUyNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/8135252?v=4","gravatar_id":"","url":"https://api.github.com/users/jukben","html_url":"https://github.com/jukben","followers_url":"https://api.github.com/users/jukben/followers","following_url":"https://api.github.com/users/jukben/following{/other_user}","gists_url":"https://api.github.com/users/jukben/gists{/gist_id}","starred_url":"https://api.github.com/users/jukben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jukben/subscriptions","organizations_url":"https://api.github.com/users/jukben/orgs","repos_url":"https://api.github.com/users/jukben/repos","events_url":"https://api.github.com/users/jukben/events{/privacy}","received_events_url":"https://api.github.com/users/jukben/received_events","type":"User","site_admin":false},"created_at":"2018-12-25T12:13:55Z","updated_at":"2018-12-25T12:13:55Z","author_association":"COLLABORATOR","body":"Hey, could you please prepare repro on codepen (based on this https://codepen.io/jukben/pen/bYZqvR). It sounds like something worth to fix. 👍 "}}
{"actor":{"display_login":"jukben"}}