Skip to content

TypeError: Cannot read property 'valueTracker' of undefined #12280

@sangle7

Description

@sangle7

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

What is the current behavior?
when i worked with the branch 15.6-dev, this error happened
2018-02-24 5 28 38

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

const App = props => (
  <form onChange={event => console.log(event.target.value)}>
    <label>
      <input type={'radio'} name={'myGroup'} value={1}/>
      Value 1
    </label>
    <label>
      <input type={'radio'} name={'myGroup'} value={2}/>
      Value 2
    </label>
    <label>
      <input type={'radio'} name={'myGroup'} value={3}/>
      Value 3
    </label>
  </form>
)

the error shows each time when a radio be clicked on

What is the expected behavior?
I had opened a pr about it #12230

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
on branch 15.6-dev
notice that this error has been fixed in v16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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