Fix media modal prev button behavior. (#4158)

th-downstream
Naoki Kosaka 7 years ago committed by Eugen Rochko
parent 336f1bc5ec
commit 6e511ee673

@ -35,7 +35,7 @@ export default class MediaModal extends ImmutablePureComponent {
}
handlePrevClick = () => {
this.setState({ index: (this.getIndex() - 1) % this.props.media.size });
this.setState({ index: (this.props.media.size + this.getIndex() - 1) % this.props.media.size });
}
handleKeyUp = (e) => {

Loading…
Cancel
Save