Merge branch 'media-modal-hotkeys' into 'develop'
MediaModal: fix hotkey navigation Closes #1209 See merge request soapbox-pub/soapbox!1930
This commit is contained in:
commit
cd282079a2
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ const MediaModal: React.FC<IMediaModal> = (props) => {
|
||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener('keydown', handleKeyDown);
|
window.removeEventListener('keydown', handleKeyDown);
|
||||||
};
|
};
|
||||||
}, []);
|
}, [index]);
|
||||||
|
|
||||||
const getIndex = () => {
|
const getIndex = () => {
|
||||||
return index !== null ? index : props.index;
|
return index !== null ? index : props.index;
|
||||||
|
|
Loading…
Reference in a new issue