Skip to content

Commit

Permalink
Up initResize
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Sep 16, 2023
1 parent c1ab34d commit 928662e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/view/SelectComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,9 @@ export default {

if (model && resizable) {
canvas.addSpot({ type: spotTypeResize, component: model });
const el = isElement(elem) ? elem : model.getEl();

if (hasCustomResize) return;
if (hasCustomResize || !el) return;

let modelToStyle: any;
const { config } = em;
Expand All @@ -409,7 +410,6 @@ export default {
});
};

const el = isElement(elem) ? elem : model.getEl();
const options: ResizerOptions = {
// Here the resizer is updated with the current element height and width
onStart(e: Event, opts: any = {}) {
Expand Down

0 comments on commit 928662e

Please sign in to comment.