You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i want to delete all currently selected objects at once. Since i set the property preserveObjectStacking to true, it throws an error and deletes just one of the selected objects.
One workaround is to set the flag to false before deleting and set to true again when finished (line 14 & line 19 in the fiddle).
Uncaught TypeError: Cannot read property 'getActiveGroup' of undefined
at i._renderControls (VM139 fabric.min.js:4)
at i._renderControls (VM139 fabric.min.js:6)
at i._renderControls (VM139 fabric.min.js:1)
at i.drawControls (VM139 fabric.min.js:4)
at i.renderCanvas (VM139 fabric.min.js:3)
at i.renderAll (VM139 fabric.min.js:3)
at i.remove (VM139 fabric.min.js:1)
at i.remove (VM139 fabric.min.js:4)
at selection.forEach.obj (VM138:61)
at Array.forEach (<anonymous>)
The text was updated successfully, but these errors were encountered:
Hello,
i want to delete all currently selected objects at once. Since i set the property
preserveObjectStacking
to true, it throws an error and deletes just one of the selected objects.One workaround is to set the flag to false before deleting and set to true again when finished (line 14 & line 19 in the fiddle).
Version
1.7.16
Test Case
https://jsfiddle.net/ak68wm19/1/
Steps to reproduce
Expected Behavior
All objects should be deleted.
Actual Behavior
Following error will be thrown:
The text was updated successfully, but these errors were encountered: