Skip to content

Strange behaviour with email property on forms #25

@gtrinkwon

Description

@gtrinkwon

When populating a form with a user model, the email field populates with the number 1.

This happens on EmailType and TextType

Creating a second field with any other name, and populating that field in the user model works fine, it's just the name 'email' that causes it to fail.

Image

Adding

                'data' => $options['data']->email ?? null,

Seems to resolve the issue, but it's strange and a bit worrying that this issue occurs, and this step could easily be forgotten.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions