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它正在工作,我正在下载。下面是示例代码:
有人请帮忙,我真的很挣扎这个问题,但没有希望