Skip to content

Commit f6b2847

Browse files
committed
fix(element-shade): get data from event.detail when the selection is dynamic
1 parent e7e3510 commit f6b2847

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/element-shade/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ export default class CropperShade extends CropperElement {
9090
y,
9191
width,
9292
height,
93-
} = $selection.multiple ? (event as CustomEvent).detail : $selection;
93+
} = ($selection.dynamic || $selection.multiple)
94+
? (event as CustomEvent).detail
95+
: $selection;
9496

9597
this.$change(x, y, width, height);
9698

0 commit comments

Comments
 (0)