From 1eef2bca2b07d4f5de7eecd207d7699abef28eb6 Mon Sep 17 00:00:00 2001 From: Andreas Schmidt Date: Fri, 14 Jan 2022 15:19:29 +0100 Subject: [PATCH] fix inputs not blurring when pressing enter Signed-off-by: Andreas Schmidt --- src/renderer/components/input/input.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/components/input/input.tsx b/src/renderer/components/input/input.tsx index e9dbc48aad..9c7d6aa168 100644 --- a/src/renderer/components/input/input.tsx +++ b/src/renderer/components/input/input.tsx @@ -283,6 +283,9 @@ export class Input extends React.Component { } else { this.setDirty(); } + + //pressing enter indicates that the edit is complete, we can unfocus now + this.blur(); } }