Hi, I created a basic react app following this tutorial - https://ej2.syncfusion.com/react/documentation/image-editor/getting-started
I see just the image upload button, and when I upload the image, the actual image component doesnt show up. I can see control buttons, but not the image thats being modified.
What am i doing wrong?
Before selecting image
After selecting an image
index.html
App.tsx
App.css
Hi Aayush
We have attempted to replicate the issue on our end but were unable to do so. We have prepared a sample based on your provided code snippet. Refer to the below sample link.
Sample link: https://stackblitz.com/edit/react-qtnnjw?file=index.js
If you still facing the issue, could you please share the issue replicable sample or replicate issue in our sample. Based on that we will check and provide you a better solution quickly.
Regards,
YuvanShankar A
Hi YuvanShankar, heres my link. The issue is reproduced there too.
https://stackblitz.com/edit/stackblitz-starters-snb26s?file=src%2FApp.tsx
Hi Aayush,
To resolve this issue, kindly set the height and width for image editor component like shown below.
[style.css]:
|
#wrapperDiv { height: 80vh; width: 100%; } |
Sample link: https://stackblitz.com/edit/stackblitz-starters-qjb93k?file=src%2Fstyle.css,src%2Findex.tsx
Get back to us if you need any further assistance on this.