{"action":"closed","issue":{"url":"https://api.github.com/repos/gpietro/react-numpad/issues/22","repository_url":"https://api.github.com/repos/gpietro/react-numpad","labels_url":"https://api.github.com/repos/gpietro/react-numpad/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/gpietro/react-numpad/issues/22/comments","events_url":"https://api.github.com/repos/gpietro/react-numpad/issues/22/events","html_url":"https://github.com/gpietro/react-numpad/issues/22","id":335340093,"node_id":"MDU6SXNzdWUzMzUzNDAwOTM=","number":22,"title":"delete last character","user":{"login":"bibblebabl","id":9008978,"node_id":"MDQ6VXNlcjkwMDg5Nzg=","avatar_url":"https://avatars1.githubusercontent.com/u/9008978?v=4","gravatar_id":"","url":"https://api.github.com/users/bibblebabl","html_url":"https://github.com/bibblebabl","followers_url":"https://api.github.com/users/bibblebabl/followers","following_url":"https://api.github.com/users/bibblebabl/following{/other_user}","gists_url":"https://api.github.com/users/bibblebabl/gists{/gist_id}","starred_url":"https://api.github.com/users/bibblebabl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bibblebabl/subscriptions","organizations_url":"https://api.github.com/users/bibblebabl/orgs","repos_url":"https://api.github.com/users/bibblebabl/repos","events_url":"https://api.github.com/users/bibblebabl/events{/privacy}","received_events_url":"https://api.github.com/users/bibblebabl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-25T10:03:46Z","updated_at":"2018-10-05T10:28:19Z","closed_at":"2018-10-05T10:28:19Z","author_association":"NONE","body":"https://github.com/gpietro/react-numpad/blob/dc2cdfe26ee99483bc3b4532ad3c04cab6b555b4/lib/elements/KeyPad.js#L95\r\n\r\nIt doesn't worked for me well in Sync mode. \r\nSlice doesn't work correctly. if you delete last charachter it returns empty string and doesnt modify state\r\n\r\nI have to fork your component and put hotfix like this:\r\n\r\nthis.setState(prevState => ({\r\n  input: prevState.input.length === 1 ? '0' : prevState.input.slice(0, -1)\r\n}))"}}
{"actor":{"display_login":"gpietro"}}