fix: time-picker can not scroll to selected

pull/3667/head
tangjinzhou 2021-02-06 14:30:57 +08:00
parent 57b9ac17fd
commit ab75379f0c
1 changed files with 1 additions and 5 deletions

View File

@ -103,10 +103,6 @@ const Select = {
this.setState({ active: false });
},
saveList(node) {
this.list = node;
},
scrollToSelected(duration) {
// move to selected item
const select = findDOMNode(this);
@ -137,7 +133,7 @@ const Select = {
return (
<div class={cls} onMouseenter={this.handleMouseEnter} onMouseleave={this.handleMouseLeave}>
<ul ref={this.saveList}>{this.getOptions()}</ul>
<ul ref="list">{this.getOptions()}</ul>
</div>
);
},