Skip to content

Commit

Permalink
Set the initialization default aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
lijie committed Nov 27, 2023
1 parent 3c96da8 commit 1560505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/image-editor/src/Editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default class Editor extends Component {
className="uppy-u-reset uppy-c-btn"
onClick={() => {
this.cropper.reset()
this.cropper.setAspectRatio(opts.cropperOptions.initialAspectRatio);
this.cropper.setAspectRatio(opts.cropperOptions.initialAspectRatio)
this.setState({ angle90Deg: 0, angleGranular: 0 })
}}
>
Expand Down

0 comments on commit 1560505

Please sign in to comment.