leaflet-responsive-popup icon indicating copy to clipboard operation
leaflet-responsive-popup copied to clipboard

Close button is malfunctioning and redirect browser to #close

Open tkempken opened this issue 2 years ago • 2 comments

I've notices issues when users press the close button they will be redirected to anchor #close. Based on used some application routers this will led to issues without real requirement. From my understanding of the code this is unnecessary as the close button event will be catched without relations to the anchor.

closeButton.href = '#close';

tkempken avatar Jun 27 '22 21:06 tkempken

The code is taken from Leaflet https://github.com/Leaflet/Leaflet/blob/v1.8.0/src/layer/Popup.js#L203

So, I think you should submit the issue there first.

This plugin only modifies the positioning of the popup, the rest follows the original L.Popup() code

yafred avatar Jun 28 '22 07:06 yafred

I am currently struggling with that one, I think it may be related somehow by propagation

andercarrera avatar Dec 20 '22 10:12 andercarrera