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

Fix upload section adding deleted images to the canvas #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MichaelDimmitt
Copy link

@MichaelDimmitt MichaelDimmitt commented Sep 28, 2024

Resolves #46
Happy to make changes.

The more correct solution to this would be event.stopPropogation.
However, that information would need to be enabled on ImagesGrid from 'polotno/side-panel'; Which I do not think is source available.

To see the change in action look at commit: 4384c3d
Originally the upload section was commented out so I put a commit on top commenting it back out.

Issue:

upload-section adds an image to the canvas when deleting.

Expected:

Image should be deleted and no image added to the canvas.

Steps to reproduce:

Uncommenting the following line in App.js:
DEFAULT_SECTIONS.unshift(UploadSection);

add import {UploadSection} from './sections/upload-section' to the top of App.js

Video of issue: (deleted image is added to the canvas)

delete-incorrectly-loads-image.mov

Video with solution: (deleted image does not get added to the canvas)

fixed.mov

Cheers,
Michael Dimmitt

Copy link

netlify bot commented Sep 28, 2024

👷 Deploy request for polotno-studio pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 16e671f

@MichaelDimmitt MichaelDimmitt changed the title fix upload section adding deleted images to the canvas Fix upload section adding deleted images to the canvas Sep 28, 2024
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

Successfully merging this pull request may close these issues.

upload-section deleted image gets added to the canvas.
1 participant