Problem/Motivation

When I try to add markers to a Geolocation field the coordinates are not always filled. Using Firefox the first marker is filled, for the following I have to add another entry manually first, otherwise the coordinates remain empty. With Chrome even the first coordinate is not filled.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

janc48 created an issue. See original summary.

shank115’s picture

I can reproduce this when the field is inside a Paragraph. Only the first marker gets saved. The widget can't find the "Add another item" button because inside a paragraph the button's name has a prefix.

Changing [name="..._add_more"] to [name$="..._add_more"] in FieldWidgetBase.js fixes it for me.

@janc48 is your field inside a Paragraph or other nested form?

janc48’s picture

@shank115 you are totally right, I am using the field inside a paragraph. Good guess!

christianadamski made their first commit to this issue’s fork.

christianadamski’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.