{"action":"created","issue":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/4662","repository_url":"https://api.github.com/repos/kangax/fabric.js","labels_url":"https://api.github.com/repos/kangax/fabric.js/issues/4662/labels{/name}","comments_url":"https://api.github.com/repos/kangax/fabric.js/issues/4662/comments","events_url":"https://api.github.com/repos/kangax/fabric.js/issues/4662/events","html_url":"https://github.com/kangax/fabric.js/issues/4662","id":293453997,"number":4662,"title":"Objects not redrawn when calling canvas.getActiveGroup()","user":{"login":"nickasd","id":26737509,"avatar_url":"https://avatars3.githubusercontent.com/u/26737509?v=4","gravatar_id":"","url":"https://api.github.com/users/nickasd","html_url":"https://github.com/nickasd","followers_url":"https://api.github.com/users/nickasd/followers","following_url":"https://api.github.com/users/nickasd/following{/other_user}","gists_url":"https://api.github.com/users/nickasd/gists{/gist_id}","starred_url":"https://api.github.com/users/nickasd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickasd/subscriptions","organizations_url":"https://api.github.com/users/nickasd/orgs","repos_url":"https://api.github.com/users/nickasd/repos","events_url":"https://api.github.com/users/nickasd/events{/privacy}","received_events_url":"https://api.github.com/users/nickasd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-02-01T09:11:36Z","updated_at":"2018-02-06T12:08:12Z","closed_at":"2018-02-01T09:30:58Z","author_association":"NONE","body":"In my use case I want to update all selected objects when a button is clicked. For this purpose I use `canvas.getActiveObject()` and `canvas.getActiveGroup()`. I noticed that updating the active object (got from `canvas.getActiveObject()`) and then calling `canvas.getActiveGroup()` causes the updated object not to be redrawn until the selection is cleared.\r\n\r\n## Version\r\n2.0.0-rc.4\r\n\r\n## Test Case\r\nhttp://jsfiddle.net/Da7SP/815/\r\n\r\n## Steps to reproduce\r\n1. Select the square.\r\n2. Click the button \"Click me\".\r\n\r\n## Expected Behavior\r\nThe square should change color.\r\n\r\n## Actual Behavior\r\nThe square's color is updated only when clicking anywhere in the canvas to clear the selection.\r\nThe problem is solved if deleting line 43."},"comment":{"url":"https://api.github.com/repos/kangax/fabric.js/issues/comments/363403357","html_url":"https://github.com/kangax/fabric.js/issues/4662#issuecomment-363403357","issue_url":"https://api.github.com/repos/kangax/fabric.js/issues/4662","id":363403357,"user":{"login":"nickasd","id":26737509,"avatar_url":"https://avatars3.githubusercontent.com/u/26737509?v=4","gravatar_id":"","url":"https://api.github.com/users/nickasd","html_url":"https://github.com/nickasd","followers_url":"https://api.github.com/users/nickasd/followers","following_url":"https://api.github.com/users/nickasd/following{/other_user}","gists_url":"https://api.github.com/users/nickasd/gists{/gist_id}","starred_url":"https://api.github.com/users/nickasd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickasd/subscriptions","organizations_url":"https://api.github.com/users/nickasd/orgs","repos_url":"https://api.github.com/users/nickasd/repos","events_url":"https://api.github.com/users/nickasd/events{/privacy}","received_events_url":"https://api.github.com/users/nickasd/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T12:08:12Z","updated_at":"2018-02-06T12:08:12Z","author_association":"NONE","body":"Ok, if using `set` is sufficient then I will do it like this. That's why in the fiddle I used myProp instead of fill, because I knew that using `setFill` would work.\r\n\r\nProbably the documentation should still be updated, since 't's mentioned twice that `cacheProperties` needs `statefullCache` to be enabled."}}
{"actor":{"display_login":"nickasd"}}