Fixed: Bookshelf jump bar

pull/1205/head
ta264 3 years ago
parent 924e393d1a
commit a774cf0682

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

Loading…
Cancel
Save