Skip to content

Form submit button has empty values in 15.2.0 #7179

Closed

Description

@h8rry

Do you want to request a feature or report a bug?

This is a bug

What is the current behavior?

screen shot 2016-07-03 at 4 12 19 pm
screen shot 2016-07-03 at 4 11 15 pm

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).

Using 15.2.0 react and react-dom

What is the expected behavior?

screen shot 2016-07-03 at 4 13 05 pm
screen shot 2016-07-03 at 4 13 10 pm

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

In 15.2.0, extra attributes name and value with empty values are added to the submit button of a form.

It works in 15.1.0.

Activity

  1. kostasmanionis commented on Jul 3, 2016

    @kostasmanionis

    Uhhh, seems that this was missed on #6406? The culprit here is postMountWrapper in ReactDOMInput.js

    node.value = node.value; 🙊

  2. franzejr commented on Jul 3, 2016

    @franzejr
  3. zpao commented on Jul 5, 2016

    @zpao
    Contributor

    Thanks for catching! I put up something that at least fixes the constant render case. I think we'd always have this problem if you toggled value of these inputs from a real value to undefined so I'm not too worried about trying to handle that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions