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

Delete not work with sortable #194

Open
phpiando opened this issue Aug 12, 2022 · 1 comment
Open

Delete not work with sortable #194

phpiando opened this issue Aug 12, 2022 · 1 comment

Comments

@phpiando
Copy link

I'm using the library and I've identified a problem.
When the "sortable" option is active, the "delete an image" option does not work, that is, when you click the "x" button to delete, nothing happens.

Has anyone ever experienced this?

To do the test you can use the demo that is on the site:
https://safrazik.github.io/vue-file-agent/

@hcthangdev
Copy link

I have a solution to this problem.
In sortable mode, please enable "handle" mode to be able to use "delete".
If you want the "sort" touch point to be wider, adjust the css to enlarge the "handle" element as wide as the thumbnail. Next, use clip-path to leave the area of the delete button so that "sortable" and "delete" can be used flexibly.

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

2 participants