Skip to content

Commit

Permalink
fix(element-selection): reset the initialCoverage property to its i…
Browse files Browse the repository at this point in the history
…nitial value when creating new selection
  • Loading branch information
fengyuanchen committed Jun 22, 2024
1 parent a99a5bd commit 57e2688
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/element-selection/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ export default class CropperSelection extends CropperElement {
newSelection.removeAttribute('id');
}

newSelection.initialCoverage = NaN;
this.active = false;

if (this.parentElement) {
Expand Down

0 comments on commit 57e2688

Please sign in to comment.