🐛 (sideBarFolderButtons): prevent unnecessary folder name updates on blur
This commit is contained in:
parent
725a3a0b14
commit
870193d595
1 changed files with 5 additions and 1 deletions
|
|
@ -272,7 +272,11 @@ const SideBarFoldersButtonsComponent = ({
|
|||
}}
|
||||
autoFocus={true}
|
||||
onBlur={async () => {
|
||||
handleEditNameFolder(item);
|
||||
if (refInput.current?.value !== item.name) {
|
||||
handleEditNameFolder(item);
|
||||
} else {
|
||||
editFolderName.edit = false;
|
||||
}
|
||||
}}
|
||||
value={foldersNames[item.name]}
|
||||
id={`input-folder-${item.name}`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue