折腾:
【已解决】ReactJS中输入框输入内容变化时触发搜索返回列表
期间出错:
Uncaught TypeError: Cannot read property ‘apply’ of undefined
加上其他属性看看:
nkbt/react-debounce-input: React component that renders Input with debounced onChange
forceNotifyByEnter
forceNotifyOnBlur
<DebounceInput forceNotifyByEnter={false} forceNotifyOnBlur={false} debounceTimeout={this.props.debounceTimeout} placeholder={this.props.placeholder} onInputChange={this.onInputChange} /> |
问题依旧。
react-debounce-input Uncaught TypeError: Cannot read property ‘apply’ of undefined
Uncaught TypeError: Cannot read property ‘apply’ of undefined · Issue #2264 · webpack/webpack
Cannot read property ‘apply’ of undefined · Issue #2359 · reactjs/redux
Uncaught TypeError: Cannot read property ‘call’ of undefined · Issue #959 · webpack/webpack
好像都是angluar 2方面的问题
javascript – "TypeError: Cannot read property ‘apply’ of undefined" – Stack Overflow
javascript – 不明白Uncaught TypeError: Cannot read property ‘apply’ of undefined – SegmentFault
【总结】
算了。这个是第三方的库:
react-debounce-input
的问题。
所以懒得理了。
因为及时解决了问题,也只能是修改本地已经npm install后的库的代码:
导致项目引用的库,不能很独立,所以放弃。
转载请注明:在路上 » 【不去解决】react-debounce-input调用出错:Uncaught TypeError Cannot read property apply of undefined