Skip to content

Commit

Permalink
Merge pull request #55 from Vladislav913/add-parametr-in-onClose-func…
Browse files Browse the repository at this point in the history
…tion

add-parametr-in-onClose-function
  • Loading branch information
max-mykhailenko committed Mar 26, 2021
2 parents 19ccd06 + 3dca955 commit 050c5b6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/react-pure-modal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion example/example.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/react-pure-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@ function PureModal(props: Props) {
}

if (onClose) {
onClose();
event
? onClose({
isPassive: true,
})
: onClose({
isPassive: false,
});
}

unsetModalContext();
Expand Down

0 comments on commit 050c5b6

Please sign in to comment.