diff --git a/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/edit_file_entry.jsp b/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/edit_file_entry.jsp
index 33f544fc21537b..4700b6098a387f 100644
--- a/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/edit_file_entry.jsp
+++ b/modules/apps/document-library/document-library-web/src/main/resources/META-INF/resources/document_library/edit_file_entry.jsp
@@ -308,7 +308,6 @@ renderResponse.setTitle(headerTitle);
if (selectFolderButton) {
selectFolderButton.addEventListener('click', (event) => {
Liferay.Util.openSelectionModal({
- selectEventName: 'folderSelected',
multiple: false,
onSelect: function (selectedItem) {
if (!selectedItem) {
@@ -324,6 +323,7 @@ renderResponse.setTitle(headerTitle);
Liferay.Util.selectFolder(folderData, '');
},
+ selectEventName: 'folderSelected',
title: '',
<%