Skip to content

Commit ab75379

Browse files
committed
fix: time-picker can not scroll to selected
1 parent 57b9ac1 commit ab75379

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

components/vc-time-picker/Select.jsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ const Select = {
103103
this.setState({ active: false });
104104
},
105105

106-
saveList(node) {
107-
this.list = node;
108-
},
109-
110106
scrollToSelected(duration) {
111107
// move to selected item
112108
const select = findDOMNode(this);
@@ -137,7 +133,7 @@ const Select = {
137133

138134
return (
139135
<div class={cls} onMouseenter={this.handleMouseEnter} onMouseleave={this.handleMouseLeave}>
140-
<ul ref={this.saveList}>{this.getOptions()}</ul>
136+
<ul ref="list">{this.getOptions()}</ul>
141137
</div>
142138
);
143139
},

0 commit comments

Comments
 (0)