Skip to content

fix: prevent popup from reopening after adding favorite from map click - #1645

Merged
CarlSchwan merged 1 commit into
nextcloud:masterfrom
sim6:fix_prevent_popup_from_reopening_after_adding_favorite_from_map_click
Jul 30, 2026
Merged

fix: prevent popup from reopening after adding favorite from map click#1645
CarlSchwan merged 1 commit into
nextcloud:masterfrom
sim6:fix_prevent_popup_from_reopening_after_adding_favorite_from_map_click

Conversation

@sim6

@sim6 sim6 commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Add @click.stop modifier to the 'Add to favorites' button click handler in ClickSearchPopup to call event.stopPropagation(). Without it, the click event bubbles up through the Leaflet popup overlay to the map container, triggering onMapClick and opening a duplicate popup.

Add @click.stop modifier to the 'Add to favorites' button click handler in
ClickSearchPopup to call event.stopPropagation(). Without it, the click
event bubbles up through the Leaflet popup overlay to the map container,
triggering onMapClick and opening a duplicate popup.

Signed-off-by: Simó Albert i Beltran <sim6@probeta.net>
@sim6

sim6 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor Author

@CarlSchwan Could you review it?

@CarlSchwan
CarlSchwan enabled auto-merge July 30, 2026 14:20
@CarlSchwan
CarlSchwan merged commit c2c8ae2 into nextcloud:master Jul 30, 2026
30 checks passed
@sim6

sim6 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants