{"action":"created","issue":{"url":"https://api.github.com/repos/josdejong/jsoneditor/issues/589","repository_url":"https://api.github.com/repos/josdejong/jsoneditor","labels_url":"https://api.github.com/repos/josdejong/jsoneditor/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/josdejong/jsoneditor/issues/589/comments","events_url":"https://api.github.com/repos/josdejong/jsoneditor/issues/589/events","html_url":"https://github.com/josdejong/jsoneditor/issues/589","id":368033354,"node_id":"MDU6SXNzdWUzNjgwMzMzNTQ=","number":589,"title":"On deleteing a node, the tree-path keeps the path of deleted node ","user":{"login":"tanmayrajani","id":8295888,"node_id":"MDQ6VXNlcjgyOTU4ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/8295888?v=4","gravatar_id":"","url":"https://api.github.com/users/tanmayrajani","html_url":"https://github.com/tanmayrajani","followers_url":"https://api.github.com/users/tanmayrajani/followers","following_url":"https://api.github.com/users/tanmayrajani/following{/other_user}","gists_url":"https://api.github.com/users/tanmayrajani/gists{/gist_id}","starred_url":"https://api.github.com/users/tanmayrajani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanmayrajani/subscriptions","organizations_url":"https://api.github.com/users/tanmayrajani/orgs","repos_url":"https://api.github.com/users/tanmayrajani/repos","events_url":"https://api.github.com/users/tanmayrajani/events{/privacy}","received_events_url":"https://api.github.com/users/tanmayrajani/received_events","type":"User","site_admin":false},"labels":[{"id":3486966,"node_id":"MDU6TGFiZWwzNDg2OTY2","url":"https://api.github.com/repos/josdejong/jsoneditor/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-09T04:08:34Z","updated_at":"2018-10-29T19:37:01Z","closed_at":"2018-10-29T19:31:50Z","author_association":"CONTRIBUTOR","body":"When we delete a node, the tree-path still contains the path of deleted node i.e. `Null` and not the newly-focused node i.e. `Number` in our case.\r\n![output](https://user-images.githubusercontent.com/8295888/46646185-5839e900-cba6-11e8-89fe-011059fda3dc.gif)\r\n\r\n**Edit:** Also noticed a similar behaviour when we `undo` from the top bar."},"comment":{"url":"https://api.github.com/repos/josdejong/jsoneditor/issues/comments/434049747","html_url":"https://github.com/josdejong/jsoneditor/issues/589#issuecomment-434049747","issue_url":"https://api.github.com/repos/josdejong/jsoneditor/issues/589","id":434049747,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDA0OTc0Nw==","user":{"login":"josdejong","id":568626,"node_id":"MDQ6VXNlcjU2ODYyNg==","avatar_url":"https://avatars1.githubusercontent.com/u/568626?v=4","gravatar_id":"","url":"https://api.github.com/users/josdejong","html_url":"https://github.com/josdejong","followers_url":"https://api.github.com/users/josdejong/followers","following_url":"https://api.github.com/users/josdejong/following{/other_user}","gists_url":"https://api.github.com/users/josdejong/gists{/gist_id}","starred_url":"https://api.github.com/users/josdejong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josdejong/subscriptions","organizations_url":"https://api.github.com/users/josdejong/orgs","repos_url":"https://api.github.com/users/josdejong/repos","events_url":"https://api.github.com/users/josdejong/events{/privacy}","received_events_url":"https://api.github.com/users/josdejong/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T19:37:01Z","updated_at":"2018-10-29T19:37:01Z","author_association":"OWNER","body":"I found the cause, `this.selection` wasn't up to date right after an action was executed, and my solution to update the treepath was based on that. The tree path should now work for all actions and for undo/redo too in the just published `v5.25.0`."}}
{"actor":{"display_login":"josdejong"}}