Fixed rename dialog retriggering after hitting enter if opened with the icon
This commit is contained in:
parent
ee7eb498f4
commit
a6a2d8d4cc
|
@ -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]);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue