-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Asset manager delete problems #549
Comments
Hi @duskhacker, I was able to recreate the issue of the onClick event firing when clicking on the |
@ryandeba Thanks for the followup! This is one of my outstanding problems with GrapesJS. I know I'm not going to be able to fix it in a reasonable time-frame, I'm not familiar with the code-base enough to debug effectively so I'll have to rely on your expertise. Currently, it is not a show-stopper I have lots of stuff to do before this goes into production. But if it can be fixed in the coming days that would be great! |
@duskhacker - I've submitted a pull request that should fix this bug |
Merged, HUUUGE thanks Ryan 🥇 |
@ryandeba: Thank you!! 💯 |
No problem! I'm happy to help out |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In the Asset Manager, when the
x
to remove an asset is clicked, it appears to fire both theonDelete
event AND theonClick
event. This puts the asset you just deleted into the target. Furthermore, one cannot click another asset to replace it in the target until you close the asset manager window and re-open it.If the user is not very careful, they can get the document into an inconsistent state that will not load properly from the server.
Any pointers on how to fix this are welcome.
The text was updated successfully, but these errors were encountered: