Merge pull request #50 from asivery/master

Fixed rename dialog retriggering after hitting enter
This commit is contained in:
Stefano Brilli 2021-07-18 17:34:41 +02:00 committed by GitHub
commit 4ca783a6e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -358,6 +358,7 @@ export const Main = (props: {}) => {
};
const handleRenameActionClick = (event: React.MouseEvent) => {
if(event.detail !== 1) return; //Event retriggering when hitting enter in the dialog
handleRenameDoubleClick(event, selected[0]);
};