mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
web: fix entering password closes publish dialog
This commit is contained in:
committed by
Abdullah Atta
parent
cd7e0f5380
commit
6f51a98477
@@ -48,8 +48,9 @@ function PublishView(props) {
|
||||
|
||||
const onKeyDown = useCallback(
|
||||
(event) => {
|
||||
if (event.keyCode === 27);
|
||||
onClose(false);
|
||||
if (event.keyCode === 27) {
|
||||
onClose(false);
|
||||
}
|
||||
},
|
||||
[onClose]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user