Skip to content

Commit 03e3808

Browse files
committed
bug in sl
1 parent 994e5bf commit 03e3808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/select/SelectList.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ var SelectList = React.createClass({
178178
}
179179
else if ( key === 'Enter' || key === ' ' ) {
180180
e.preventDefault()
181-
change(data[this.state.focusedIndex])
181+
change(this.state.focusedIndex)
182182
}
183183
else if ( key === 'ArrowDown' || key === 'ArrowRight' ) {
184184
e.preventDefault()

0 commit comments

Comments
 (0)