Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The cropper disappear when upload a image #181

Closed
cuong2001a opened this issue Apr 12, 2022 · 5 comments
Closed

The cropper disappear when upload a image #181

cuong2001a opened this issue Apr 12, 2022 · 5 comments

Comments

@cuong2001a
Copy link

The image: https://i.pinimg.com/originals/6b/6f/ac/6b6fac2c5263b36cafbb8a6d13d19210.jpg
My code:

<ImgCrop rotate>
    <Upload>
       <Button>Upload</Button>
    </Upload>
</ImgCrop>

The error:
image
The cropper is just a tiny point in center with width = 0, and height = 0, I can't do anything. and when click ok to preview the image can't load

@nanxiaobei
Copy link
Owner

Can not reproduce on Chrome. maybe similar to this.
#177

@dangthaii
Copy link

Can not reproduce on Chrome. maybe similar to this. #177

cuong2001a is my account, I saw that topic, and I understand that add transitionName="" and maskTransitionName="", but how to config that into like props of a Modal?

@nanxiaobei
Copy link
Owner

It is not supported at present to customize Modal props, may be added in the future.

@ianitararache
Copy link

Can we fix it ourselves? The error triggers quite a lot with large images. On Chrome / Firefox or Safari on Mac

@skyplor
Copy link
Contributor

skyplor commented Apr 19, 2022

I had the same issue as well. Taking reference from #177, I created a PR for adding the 2 attributes to the AntModal. It seemed to have fixed this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants