Skip to content
This repository was archived by the owner on Sep 13, 2020. It is now read-only.
This repository was archived by the owner on Sep 13, 2020. It is now read-only.

Invalid longitude when navigating to Japan from US on Change your Location form map #82

Open
@phu

Description

@phu

My previous location was in the US; when attempting to change it to Tokyo, I zoomed out and dragged my way across the Pacific. On updating the other fields and submitting, nothing visible happened (no POST, no visible error message, nothing at all in the UI).

The (Chromium) console showed this error:

An invalid form control with name='longitude' is not focusable.

Removing the display:none styling from the longitude field's container, the map had set it to about -220, and the client-side validation was trying to display an error on that field, which showed up upon resubmitting with the field visible:

Value must be greater than or equal to -180.

Looking up the correct longitude for Tokyo (139.6917), entering it manually, and submitting resulted in success, and the map displays my location correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions