Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidden map will error on "validate" call #5151

Open
LaurensBurger opened this issue Mar 12, 2025 · 0 comments
Open

Hidden map will error on "validate" call #5151

LaurensBurger opened this issue Mar 12, 2025 · 0 comments
Labels
triage Issue needs to be validated. Remove this label if the issue considered valid.

Comments

@LaurensBurger
Copy link
Collaborator

LaurensBurger commented Mar 12, 2025

Product versie / Product version

2.8.5 > 3.1.x

Customer reference

lv 221

Omschrijf het probleem / Describe the bug

When a map component is hidden, with the option "clear when hidden" is enabled. Navigating to the next step is impossible since the validate call will return a error:

3.1.x

    "type": "https://open-forms/fouten/ValidationError/",
    "code": "invalid",
    "title": "Invalid input.",
    "status": 400,
    "detail": "",
    "instance": "urn:uuid:17b996e3-3254-42b8-8f90-17bd92be3630",
    "invalidParams": [
        {
            "name": "data.kaartlocatie1.nonFieldErrors",
            "code": "invalid",
            "reason": "Ongeldige data. Verwacht een dictionary, kreeg een list."
        }
    ]
}

2.8.6

{
    "type": "https://frm.nl/fouten/ValidationError/",
    "code": "invalid",
    "title": "Invalid input.",
    "status": 400,
    "detail": "",
    "instance": "urn:uuid:518b2930-3ecc-404f-b8c3-52de6e9c79db",
    "invalidParams": [
        {
            "name": "data.kaartLocatie",
            "code": "not_a_list",
            "reason": "Een lijst van waarden was verwacht, maar kreeg \"str\"."
        }
    ]
}

Stappen om te reproduceren / Steps to reproduce

Maykin test form: 194.
Don't select the checkbox

Verwacht gedrag / Expected behavior

No response

Screen resolution

None

Device

None

OS

None

Browser

No response

@LaurensBurger LaurensBurger added the triage Issue needs to be validated. Remove this label if the issue considered valid. label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue needs to be validated. Remove this label if the issue considered valid.
Projects
None yet
Development

No branches or pull requests

1 participant