Fixed upload dialog being showed after pressing "x" button#2577
Conversation
|
Thank you very much for the contribution @mezotaken. I've tested the code and confirms this solves the underlying issue. @pngwn would you be able to review the code changes and if it looks good, we can merge this in? |
|
@abidlabs as i can see from the failed static check, the |
|
I won't have time to look over this for a week or so unfortunately. |
Yeah Looks like it was an unnecessary variable. |
|
tested and it fixes the issue; also code looks good. LGTM! |
|
Thanks so much @mezotaken and @dawoodkhan82! |


Description
The issue caused by commit 996cd8b as it seems. Variable
disable_clickbeing set to false every time when "x" button is used because at the moment it happens there exists no image.clickvariable serves no purpose, not imported anywhere else in the project (correct me if i'm wrong).To prevent this behavior stopPropagation property was applied to click event on the "x" buttons. Should be done for every similar button, but my main concern is for the images.
Also user cannot upload same image after clear, because upload is triggered with
on:changeevent forhidden_uploadelement, so that's fixed too.Closes: #2476
Checklist: