We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95b8a67 commit eaced9fCopy full SHA for eaced9f
ImageCrop/ImageCrop/components/imageCropControl.tsx
@@ -84,20 +84,17 @@ const ImageCropControl: React.FC<IImageCropControlProps> = (props) => {
84
maxHeight={maxHeight}
85
aspect={aspect}
86
keepSelection={keepSelection}
87
+ style={{display: imageSrc && pcfContext.isVisible() ? 'block' : 'none',}}
88
>
89
<img
90
ref={imgRef}
91
alt="Crop"
92
src={imageSrc || ''}
93
style={{
94
maxWidth: '100%',
- maxHeight: '100%',
95
- display: imageSrc && pcfContext.isVisible() ? 'block' : 'none',
+ maxHeight: '100%',
96
transform: `rotate(${rotation}deg) scale(${scaling})`
97
- }}
98
- onError={(e) => {
99
- (e.target as HTMLImageElement).style.display = 'none';
100
+ }}
101
/>
102
</CropWrapper>
103
);
0 commit comments