mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
fix: addElement order for element list
This commit is contained in:
parent
937baf14cb
commit
bda966e818
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ class Core {
|
|||
if (this[_onlyRender] === true) return null;
|
||||
const _elem = deepClone(elem);
|
||||
_elem.uuid = createUUID();
|
||||
this[_data].elements.unshift(_elem);
|
||||
this[_data].elements.push(_elem);
|
||||
this[_emitChangeData]();
|
||||
this[_draw]();
|
||||
return _elem.uuid;
|
||||
|
|
|
|||
Loading…
Reference in a new issue