Skip to content

Confusing documentation on the popupopen event #2354

@sellonen

Description

@sellonen

Given marker m, I did something along the lines

p = L.popup().setLatLng('..').setContent('...');
m.bindPopup(p);
m.on('popupopen', function(e){ ...});

Then I clicked on the marker, saw the popup open, but my popupopen handler function was never executed. I realize now that I have to explicitly set the source for the popup when I create it, but it took me quite some time as i assumed bindPopup() to take care of it.

Is this intended behaviour or a bug?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions