[Bug] Group add function needs to be fixed
Opened this issue · 4 comments
fran1990Web commented
hI!
Does anyone know how to fix this bug? File handler.ts.
When you create a group and you export the json. If you load the json, that group works bad if you ungroup the group :)
I debug the code and i can see this:
- First the line:
const objects = this.addGroup(newOption, centered, loaded);
creates elements in canvas. Imagine, you create two elements text - The line
const groupOption = Object.assign({}, newOption, { objects, name: 'New Group' });
generates the object group - The line
createdObj = this.fabricObjects[obj.type].create(groupOption);
creates a group but when you add this group on canvas, canvas has three elements and not one. two text and a group, it must be only one, a group with 2 elements inside.
The editor is amazing, thank you very much for the work. If someone knows something with this, I ll appreciate it help
salgum1114 commented
fran1990Web commented
Thanks! :)
akshaybosamiya commented
Hi @salgum1114 ,
I'm also facing a similar issue. Any update/hint for this?
AndreasBurbach commented
I created a pullrequest for this...
#217