Closed sssash18 closed 3 years ago
@sssash18 are you working on this?
@NitinBhasneria if you want , you can work on it.Thanks
Ok will be working on it.
https://github.com/publiclab/plots2/blob/8d2efcb96e9643a74957d5cdde208f21d01360fb/app/views/tag/show/_user_controls.html.erb#L9-L12 this is the code @nstjean @cesswairimu do you find any error in this?
Yeah..I think the problem here is its doing a GET
instead of a delete
try adding data-method="delete"
@cesswairimu actually I have already tried adding data-method="delete" but nothing happened
oh :thinking: ,maybe we can try rails link...using <%= link_to ......... method: :delete %>
?
No, @cesswairimu It is working same with this... as <a ....
okay, I will take a closer look at it later and let you know if any success
Hi :smile:, this issue has been automatically marked as stale because it has not had recent activity. Don't worry you can continue to work on this and ask @publiclab/reviewers to add "work in progress" label :tada: . Otherwise, it will be closed if no further activity occurs in 5 days -- but you can always re-open it if you like! :100: Thank you for your contributions :raised_hands: :balloon:.
Hello, I am Outreachy Applicant and I would like to claim this issue. Thanks
Hi @cesswairimu,
I figured that this issue should be solved with addition of data-method="delete"
to the following tag
However, what is stopping this from working is use of e.stopPropagation()
as follows in the code:
Apparently, jquery-ujs stops event propagation in its data-method attribute due to this e.stopPropagation()
This code had been added as part of this PR: https://github.com/publiclab/plots2/pull/5995
What this code does is, It stops the dropdown menu from closing when space outside the listed links(within dropdown menu) are clicked on
This is how the drop down menu behaves when the stopPropagation is removed i.e the drop down menu closes when space outside the listed links are clicked.
One way to go about this could be to remove stopPropagation
like above and apply padding to the hyperlinks so that it responds to click when the div surrounding it is clicked. This will solve the problem to some extent. The dropdown wont close as long as we click within the hyperlinks.
Could you please suggest how I should go about this?
Thanks!
Please describe the problem (or idea)
Please show us where to look
https://publiclab.org/ ...
What's your PublicLab.org username?
Browser, version, and operating system
Thank you!
Your help makes Public Lab better! We deeply appreciate your helping refine and improve this site.
To learn how to write really great issues, which increases the chances they'll be resolved, see:
https://publiclab.org/wiki/developers#Contributing+for+non-coders