|
@@ -42,10 +42,10 @@ class SearchOption extends React.Component {
|
|
|
this.textInput.current.focus();
|
|
|
const {windowHeight,pageTop,height,refreshScroller} = this.props;
|
|
|
|
|
|
- refreshScroller().refresh(); //点开搜索弹窗更新滚动条,
|
|
|
+ refreshScroller()&&refreshScroller().refresh(); //点开搜索弹窗更新滚动条,
|
|
|
if(windowHeight - pageTop < height){
|
|
|
//$("#searchOption")[0].scrollIntoView(false);
|
|
|
- refreshScroller().scrollBottom();
|
|
|
+ refreshScroller()&&refreshScroller().scrollBottom();
|
|
|
}
|
|
|
}
|
|
|
handleClearVal(){
|