Close folder selection popover after selecting a folder in CreateFileModal

This commit is contained in:
2025-11-11 20:11:51 +01:00
parent bc49391b5c
commit 93f484eb91

View File

@@ -36,7 +36,7 @@ const CreateFileModal: React.FC<CreateFileModalProps> = ({ onCreateFile }) => {
const handleFolderSelect = (path: string) => { const handleFolderSelect = (path: string) => {
setSelectedFolder(path); setSelectedFolder(path);
// Keep popover open so users can continue browsing setPopoverOpened(false);
}; };
// Load files when modal opens // Load files when modal opens