mirror of
https://github.com/strapi/strapi.git
synced 2025-12-30 00:37:24 +00:00
fixed focusing on edit folder button when leaving create folder
This commit is contained in:
parent
d613d6aa83
commit
964106d44a
@ -118,7 +118,10 @@ export const MediaLibrary = () => {
|
||||
const handleEditFolderClose = payload => {
|
||||
setFolderToEdit(null);
|
||||
toggleEditFolderDialog(payload);
|
||||
currentFolderToEditRef.current.focus();
|
||||
|
||||
if (currentFolderToEditRef.current) {
|
||||
currentFolderToEditRef.current.focus();
|
||||
}
|
||||
};
|
||||
|
||||
useFocusWhenNavigate();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user