|
|
@ -289,7 +289,12 @@ class Bookshelf extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
onJumpBarItemPress = (jumpToCharacter) => {
|
|
|
|
onJumpBarItemPress = (jumpToCharacter) => {
|
|
|
|
const scrollIndex = getIndexOfFirstCharacter(this.props.items, jumpToCharacter);
|
|
|
|
const {
|
|
|
|
|
|
|
|
items,
|
|
|
|
|
|
|
|
sortKey
|
|
|
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const scrollIndex = getIndexOfFirstCharacter(items, sortKey, jumpToCharacter);
|
|
|
|
|
|
|
|
|
|
|
|
if (scrollIndex != null) {
|
|
|
|
if (scrollIndex != null) {
|
|
|
|
this.setState({ scrollIndex });
|
|
|
|
this.setState({ scrollIndex });
|
|
|
|