Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/e4225aa2c26ca216db0a97930f7136659b3cddf2 You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed enter in modal confirmation dialogs

Fixes 
Fixes 

(cherry picked from commit 930742ae2c69a530afe60f76a5824f2722540df8)
pull/1103/head
Taloth Saldono 5 years ago committed by Qstick
parent a877c5b25d
commit e4225aa2c2

@ -30,10 +30,10 @@ function ConfirmModal(props) {
useEffect(() => {
if (isOpen) {
bindShortcut('enter', onConfirm);
} else {
unbindShortcut('enter', onConfirm);
return () => unbindShortcut('enter', onConfirm);
}
}, [onConfirm]);
}, [isOpen, onConfirm]);
return (
<Modal

@ -56,8 +56,10 @@ function keyboardShortcuts(WrappedComponent) {
}
unbindShortcut = (key) => {
delete this._mousetrapBindings[key];
this._mousetrap.unbind(key);
if (this._mousetrap != null) {
delete this._mousetrapBindings[key];
this._mousetrap.unbind(key);
}
}
unbindAllShortcuts = () => {

Loading…
Cancel
Save