Skip to content

Fix add contact address - #1639

Open
sim6 wants to merge 4 commits into
nextcloud:masterfrom
sim6:fix-add-contact-address
Open

Fix add contact address#1639
sim6 wants to merge 4 commits into
nextcloud:masterfrom
sim6:fix-add-contact-address

Conversation

@sim6

@sim6 sim6 commented Jul 24, 2026

Copy link
Copy Markdown
  • Fix Add contact address button in map popup not working
  • Fix 404 error for default contact placement marker icon
  • Fix contact dropdown search not working
  • Fix open popup when clicking contact placement button

sim6 added 3 commits July 25, 2026 00:53
When clicking on the map, the ClickSearchPopup opens with an
'Add contact address' option. Clicking it previously did nothing
because the click event propagated to the map container, triggering
onMapNormalLeftClick which reset the placingContact state,
immediately destroying the PlaceContactPopup before the user
could interact with it.

Add @click.stop on the ClickSearchPopup button to prevent
the click from bubbling up to the map's event handler.

Signed-off-by: Simó Albert i Beltran <sim6@probeta.net>
The /svg/core/actions/user endpoint does not exist in Nextcloud,
causing a 404 when the PlaceContactPopup renders with no contact
selected. Use the existing /apps/maps/contacts-avatar endpoint
as the fallback icon source instead.

Signed-off-by: Simó Albert i Beltran <sim6@probeta.net>
Use label instead of inputLabel on NcSelect to specify the option
property key used for display and filtering.

inputLabel only sets the visible <label> text (accessibility), while
label tells NcSelect which property of each option to use as the
display value. Without it, NcSelect defaults to 'label', which does
not exist on contact objects, breaking both display and search.

Signed-off-by: Simó Albert i Beltran <sim6@probeta.net>
@sim6
sim6 force-pushed the fix-add-contact-address branch from a950068 to ec0d2a2 Compare July 24, 2026 23:15
Clicks inside the button were propagating to the map, triggering
onMapNormalLeftClick and opening a new ClickSearchPopup.

Add @click.stop on the PlaceContactPopup button to prevent
open a new ClickSearchPopup.

Signed-off-by: Simó Albert i Beltran <sim6@probeta.net>
@sim6
sim6 force-pushed the fix-add-contact-address branch from ec0d2a2 to 0e7255a Compare July 24, 2026 23:42
@sim6

sim6 commented Jul 29, 2026

Copy link
Copy Markdown
Author

@CarlSchwan Could you review it?

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.

1 participant