Skip to content

Value is not rendered when using <select> with nullable options #4208

Closed
@Livijn

Description

@Livijn

Version

3.1.5

Reproduction link

https://codepen.io/Livijn/pen/GRmxgMb

Steps to reproduce

Create a <select> with an <option :value="null"> and check the rendered HTML.

What is expected?

The :value="null" should be rendered as :value="" so the form works when sending it with GET option.

What is actually happening?

When submitting the form when the nullable option is selected, the value of the select element will be the text of the option since no value is rendered. I think this was caused by #3564

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