{"action":"created","issue":{"url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/31","repository_url":"https://api.github.com/repos/ceolter/ag-grid-react","labels_url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/31/comments","events_url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/31/events","html_url":"https://github.com/ceolter/ag-grid-react/issues/31","id":170400867,"number":31,"title":"Stop editing when clicked outside the component","user":{"login":"mieryn","id":15159574,"avatar_url":"https://avatars.githubusercontent.com/u/15159574?v=3","gravatar_id":"","url":"https://api.github.com/users/mieryn","html_url":"https://github.com/mieryn","followers_url":"https://api.github.com/users/mieryn/followers","following_url":"https://api.github.com/users/mieryn/following{/other_user}","gists_url":"https://api.github.com/users/mieryn/gists{/gist_id}","starred_url":"https://api.github.com/users/mieryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mieryn/subscriptions","organizations_url":"https://api.github.com/users/mieryn/orgs","repos_url":"https://api.github.com/users/mieryn/repos","events_url":"https://api.github.com/users/mieryn/events{/privacy}","received_events_url":"https://api.github.com/users/mieryn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T12:05:29Z","updated_at":"2016-08-15T11:44:12Z","closed_at":"2016-08-15T11:44:12Z","body":"It would be great if stopEditing() would be called when clicking outside the ag-grid React Component. There is a mixin (react-onclickoutside) and HOC (react-click-outside) for this if you don't want to implement this yourselves. At least the mixin is really easy to add to agGridReact."},"comment":{"url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/comments/239783832","html_url":"https://github.com/ceolter/ag-grid-react/issues/31#issuecomment-239783832","issue_url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/31","id":239783832,"user":{"login":"ceolter","id":6539563,"avatar_url":"https://avatars.githubusercontent.com/u/6539563?v=3","gravatar_id":"","url":"https://api.github.com/users/ceolter","html_url":"https://github.com/ceolter","followers_url":"https://api.github.com/users/ceolter/followers","following_url":"https://api.github.com/users/ceolter/following{/other_user}","gists_url":"https://api.github.com/users/ceolter/gists{/gist_id}","starred_url":"https://api.github.com/users/ceolter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceolter/subscriptions","organizations_url":"https://api.github.com/users/ceolter/orgs","repos_url":"https://api.github.com/users/ceolter/repos","events_url":"https://api.github.com/users/ceolter/events{/privacy}","received_events_url":"https://api.github.com/users/ceolter/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T11:44:12Z","updated_at":"2016-08-15T11:44:12Z","body":"this was the way the grid worked initially, in that the editor stopped if the focus was lost on the cell - so any click outside of the cell, regardless on in the grid or outside the grid, would stop the editing.\r\n\r\nthis did not work as people were using third party libraries (eg date pickers) that were rooted outside of the grid for editing, so it didnt work. hence the change to it stops editing when another cell starts editing.\r\n\r\nif you want to stop editing, there is an api method stopEditing() that you can call when focus goes outside the grid."}}
{"actor":{"display_login":"ceolter"}}