title: TypeError: Cannot read property 'value' of undefined React, Ant select
body: <p>I cannot get React Ant Form Select value as it is undefined. I have tried updating state and anything but nothing solves this issue. Error is located under handleChange method. Maybe i am handling wrong Ant design form.
  What could be issue here?</p>
  <p>My form code:</p>
  <pre><code>import React from &quot;react&quot;;
  import { Form, Input, Button, Select } from &quot;antd&quot;;
  
  import axios from &quot;axios&quot;;
  
  const FormItem = Form.Item;
  
  const { Option } = Select;
  
  
  class CustomForm extends React.Component {
  
      constructor(props) {
          super(props)
          this.state = {sport: ''};
          this.handleChange = this.handleChange.bind(this);
          this.handleFormSubmit = this.handleFormSubmit.bind(this);
      }
  
      handleChange(event) {
          const target = event.target;
          const value = target.value;
          const name = target.name;
  
          this.setState({
              [name]: value
          });
      }
  
      handleFormSubmit = (event, requestType, trainingID) =&gt; {
          const sport = event.targets.elements.sport.value;
          ...
      }
  
      render() {
          return (
            &lt;div&gt;
                  &lt;Select name=&quot;sport&quot; value={this.state.sport} style={{ width: 120 }} onChange={this.handleChange}&gt;
                      &lt;Option value=&quot;jooks&quot; &gt;Jooks&lt;/Option&gt;
                      &lt;Option value=&quot;jõud&quot; &gt;Jõud&lt;/Option&gt;
                      &lt;Option value=&quot;crossfit&quot; &gt;Crossfit&lt;/Option&gt;
                      &lt;Option value=&quot;kardio&quot; &gt;Kardio&lt;/Option&gt;
                  &lt;/Select&gt;
                &lt;/FormItem&gt;
                &lt;FormItem&gt;
                  &lt;Button type=&quot;primary&quot; htmlType=&quot;submit&quot; shape=&quot;round&quot; &gt;
                    {this.props.btnText}
                  &lt;/Button&gt;
                &lt;/FormItem&gt;
              &lt;/Form&gt;
            &lt;/div&gt;
          );
      }
  }
  </code></pre>