Fix: #202 画像拡大表示したときの右下のボタンが機能しない問題(本家由来) (#234)

This commit is contained in:
KMY(雪あすか) 2023-11-04 22:21:15 +09:00 committed by GitHub
parent 0b04b7a8c6
commit 7d4d2afdae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,12 +156,12 @@ class Footer extends ImmutablePureComponent {
};
handleOpenClick = e => {
const { status, onClose, history } = this.props;
if (e.button !== 0 || !history) {
return;
}
const { status, onClose } = this.props;
if (onClose) {
onClose();
}