Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit feb96dc8
authored
Jun 02, 2025
by
huanghezhen
Committed by
GitHub
Jun 02, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: resolve onClosed method failure in connectedComponent of useVbenModal (#6309)
1 parent
470fd43b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
packages/@core/ui-kit/popup-ui/src/modal/use-modal.ts
packages/@core/ui-kit/popup-ui/src/modal/use-modal.ts
View file @
feb96dc
...
...
@@ -94,8 +94,9 @@ export function useVbenModal<TParentModalProps extends ModalProps = ModalProps>(
injectData
.
options
?.
onOpenChange
?.(
isOpen
);
};
const
onClosed
=
mergedOptions
.
onClosed
;
mergedOptions
.
onClosed
=
()
=>
{
o
ptions
.
o
nClosed
?.();
onClosed
?.();
if
(
mergedOptions
.
destroyOnClose
)
{
injectData
.
reCreateModal
?.();
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment