Fixed rename dialog retriggering after hitting enter if opened with the icon

This commit is contained in:
asivery 2021-07-17 22:05:00 +02:00
parent ee7eb498f4
commit a6a2d8d4cc
1 changed files with 1 additions and 0 deletions

View File

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