Skip to content

Commit

Permalink
#88 destroy only if hideOnClose enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Quernest committed Dec 13, 2023
1 parent eae7201 commit 5cbba4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.4.1",
"version": "2.4.2",
"license": "MIT",
"name": "mui-modal-provider",
"author": "Quernest",
Expand Down
2 changes: 1 addition & 1 deletion src/modal-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export default function ModalProvider({
hide(id);
}

if (options && options.destroyOnClose) {
if (options && options.destroyOnClose && options.hideOnClose) {
destroy(id);
}

Expand Down

0 comments on commit 5cbba4d

Please sign in to comment.