Fixed: Bookshelf jump bar

This commit is contained in:
ta264
2021-09-01 21:04:39 +01:00
parent 924e393d1a
commit a774cf0682

View File

@@ -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 });