Skip to content

Commit 3e75331

Browse files
psychedelicioushipsterusername
authored andcommitted
fix(ui): load workflow from file
In a8de640 a change was made to many menus in an effort to improve performance. The menus were made to be lazy, so that they are mounted only while open. This causes unexpected behaviour when there is some logic in the menu that may need to execute after the user selects a menu item. In this case, when you click to load a workflow from file, the file picker opens but then the menuitem unmounts, taking the input element and all uploading logic with it. When you select a file, nothing happens because we've nuked the handlers by unmounting everything. Easy fix - un-lazy-fy the menu. Closes #7240
1 parent be13340 commit 3e75331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/frontend/web/src/features/workflowLibrary/components/WorkflowLibraryMenu/WorkflowLibraryMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const WorkflowLibraryMenu = () => {
2525
const shift = useShiftModifier();
2626
useGlobalMenuClose(onClose);
2727
return (
28-
<Menu isOpen={isOpen} onOpen={onOpen} onClose={onClose} isLazy>
28+
<Menu isOpen={isOpen} onOpen={onOpen} onClose={onClose}>
2929
<MenuButton
3030
as={IconButton}
3131
aria-label={t('workflows.workflowEditorMenu')}

0 commit comments

Comments
 (0)