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

Drag and Drop #104

Open
arondiploma opened this issue Sep 8, 2021 · 0 comments
Open

Drag and Drop #104

arondiploma opened this issue Sep 8, 2021 · 0 comments

Comments

@arondiploma
Copy link

arondiploma commented Sep 8, 2021

Hi,

Existing Output:

  1. Upload images then thumbnails will display
  2. Click the Update button on any image then just click cancel
  3. Upload new image using drag and drop then it will replace the image on step # 2

Expected Output:

  1. Upload images then thumbnails will display
  2. Click the Update button on any image then just click cancel
  3. Upload new image using drag and drop then add new thumbnail

I'm not sure if this is a bug or not but I'm expecting to add a new image instead of updating the existing one.

This happens when onImageUpdate was invoked the value of keyUpdate was set and then the user cancels the update action but the value of keyUpdate retain. So when the user uploads a new image using drag and drop, the item(keyUpdate) will be updated instead of adding new item.

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

1 participant