Skip to content

Commit

Permalink
pass event to onHide cb (#7394)
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-py authored Nov 5, 2024
1 parent d2a1642 commit 3aae091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const Dialog = React.forwardRef((inProps, ref) => {
const [bindDocumentDragEndListener, unbindDocumentDragEndListener] = useEventListener({ type: 'mouseup', target: () => window.document, listener: (event) => onDragEnd(event) });

const onClose = (event) => {
props.onHide();
props.onHide(event);
event.preventDefault();
};

Expand Down

0 comments on commit 3aae091

Please sign in to comment.