Fix: Pressing 'Ctrl+A' causes js error when canvas is empty
parent
cb5f2b5b4f
commit
b30036a424
|
@ -687,6 +687,9 @@ const addToSelection = this.addToSelection = function (elemsToAdd, showGrips) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!selectedElements.length) {
|
||||
return;
|
||||
}
|
||||
call('selected', selectedElements);
|
||||
|
||||
if (showGrips || selectedElements.length === 1) {
|
||||
|
|
Loading…
Reference in New Issue