Skip to content

Commit

Permalink
fix: time-picker can not scroll to selected
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Feb 6, 2021
1 parent 57b9ac1 commit ab75379
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/vc-time-picker/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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>
);
},
Expand Down

0 comments on commit ab75379

Please sign in to comment.