Invalid react click event onClick under IE11

clipboard.png
clicking on the CAPTCHA picture should refresh the CAPTCHA, which is normal under Google, but what happens when the click event is invalid under IE11

<Col
  span={8}
  onClick={this.getCaptcha.bind(this)}
  style={
    { textAlign: "right", marginTop: "-3px" }
  }
>
  <img src={captcha} alt="" />
</Col >
getCaptcha = (captcha) => {
    this.props.dispatch({
      type: "user/fetchCaptcha",
    });
    this.setState({
      captcha,
    });
}

timestamp the picture src


introduce babel-polyfill


add onClick to img , don't try it on Col .

Menu