Skip to content

Commit

Permalink
fix: 支持 onClose 返回 false 拦截关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanhen2013 committed Aug 7, 2024
1 parent 55234f1 commit e37316d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/form-drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function FormDrawer(
...props,
width: '40%',
onClose: () => {
props.onClose?.()
return props.onClose?.()
},
onAfterOpenChange: (visible: boolean) => {
props?.onAfterOpenChange?.(visible)
Expand Down

0 comments on commit e37316d

Please sign in to comment.