Fabric.js: discardActiveGroup() not working

Created on 10 Feb 2018  路  3Comments  路  Source: fabricjs/fabric.js

I used discardActiveGroup() in my V1 code which now breaks after V2 upgrade. Couldn't find anything related to this in breaking changes.

What's the equivalent in V2? I used this to remove the selection marks after I deleted selected items upon user request. Now the selection marks remain on canvas when the objects are deleted. Here's a fiddle:

http://jsfiddle.net/Da7SP/843/

docs

Most helpful comment

There is also a breaking changes part 2, see: http://fabricjs.com/v2-breaking-changes-2

It changed to discardActiveObject()

@asturur maybe it is smart to add a link to part 2 on the first breaking changes page?

All 3 comments

There is also a breaking changes part 2, see: http://fabricjs.com/v2-breaking-changes-2

It changed to discardActiveObject()

@asturur maybe it is smart to add a link to part 2 on the first breaking changes page?

Yes that page was temporary, but stayed like it was.
Keeping on docs is not that easy. Is harder than making the lib.

Thanks guys!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

medialwerk picture medialwerk  路  5Comments

amancqlsys picture amancqlsys  路  5Comments

semiadam picture semiadam  路  3Comments

eddieyangtx picture eddieyangtx  路  5Comments

semiadam picture semiadam  路  3Comments