Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs react选择栓系组件的较新版本抛出错误_Reactjs_React Select_Tether - Fatal编程技术网

Reactjs react选择栓系组件的较新版本抛出错误

Reactjs react选择栓系组件的较新版本抛出错误,reactjs,react-select,tether,Reactjs,React Select,Tether,我尝试使用的formattoptionlabelprop修改选项标签。看起来这个道具适用于最新版本的react select。但使用最新版本(react)-select@3.1)对于栓系组件,我在这里得到一个错误: export default class TetherSelectComponent extends Select { constructor(props) { super(props); this.renderOuter = this._renderO

我尝试使用的
formattoptionlabel
prop修改选项标签。看起来这个道具适用于最新版本的react select。但使用最新版本(react)-select@3.1)对于栓系组件,我在这里得到一个错误:

export default class TetherSelectComponent extends Select {
  constructor(props) {
      super(props);

      this.renderOuter = this._renderOuter;
      this.handleTouchOutside = this._handleTouchOutside;
  }
    componentDidMount() {
      super.componentDidMount.apply(this); // here I am getting error: TypeError: Cannot read property 'apply' of undefined

      this.dropdownFieldNode = ReactDOM.findDOMNode(this);
  }
}
版本在哪里反应-selct@1.3它正在工作,我正在下载。下面是示例代码: 有人请帮忙,我真的很挣扎这个问题,但没有希望