surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.15k stars 809 forks source link

Custom Image Picker having issues with upload, delete and drag #7148

Open ujwalkumar1995 opened 12 months ago

ujwalkumar1995 commented 12 months ago

Are you requesting a feature, reporting a bug or asking a question?

Bug

What is the current behavior?

I tried extending the existing image picker to create my own and do some customizations on top of it. Just after doing the bare minimum, I faced couple of issues:

What is the expected behavior?

I feel the upload and delete should have worked out of the box without doing any hacks. Drag should also be working and not throwing an error.

How would you reproduce the current behavior (if this is a bug)?

Please use this (https://codesandbox.io/s/gracious-davinci-pxsfmy?file=/src/App.js) sandbox to reproduce the issue.

Provide the test code and the tested page URL (if applicable)

Tested page URL: https://codesandbox.io/s/gracious-davinci-pxsfmy?file=/src/App.js

Test code

Refer to the sandbox (https://codesandbox.io/s/gracious-davinci-pxsfmy?file=/src/App.js) code.

Specify your

andrewtelnov commented 11 months ago

@ujwalkumar1995 It is better to go with the react way. Please review examples in this section.

Thank you, Andrew