Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkingshott committed Sep 25, 2022
1 parent fee1eed commit e8533f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@caneara/varnish",
"author": "Caneara",
"version": "1.0.7",
"version": "1.0.8",
"license": "MIT",
"description": "A library of UI components built using Vue.js and TailwindCSS.",
"repository": {
Expand Down
16 changes: 6 additions & 10 deletions src/mixins/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,15 @@ export default
*/
closeDialog(dialog)
{
try {
dialog.container._instance.props.visible = false;
dialog.container._instance.props.visible = false;

setTimeout(() => {
try {
dialog.container.unmount();
setTimeout(() => {
dialog.container.unmount();

dialog.container = undefined;
dialog.container = undefined;

document.body.removeChild(document.getElementById(dialog.id));
} catch (error) {}
}, 300);
} catch (error) {}
document.body.removeChild(document.getElementById(dialog.id));
}, 300);
},

/**
Expand Down

0 comments on commit e8533f2

Please sign in to comment.