Skip to content

Commit 0d00884

Browse files
authored
fix: fix scroll didn't work on close modal (#5)
1 parent 52efd8d commit 0d00884

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@burhanahmeed/vue-modal-2",
3-
"version": "1.1.8",
3+
"version": "1.1.9",
44
"private": false,
55
"author": "Burhanuddin Ahmed <[email protected]>",
66
"license": "MIT",

src/App.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export default {
6161
methods: {
6262
hell() {
6363
alert("111");
64+
this.handleClose()
65+
this.handleClose2()
6466
},
6567
handleClose() {
6668
this.isVisible = false;

src/components/Container.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export default {
102102
visible(val) {
103103
if (val) {
104104
this.addStyling("open");
105+
} else {
106+
this.handleClose();
105107
}
106108
},
107109
},

0 commit comments

Comments
 (0)