Skip to content

Commit

Permalink
fix: issue #119
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurk91 committed Nov 8, 2023
1 parent a64a1c8 commit 0c576b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/components/pluginExample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default defineComponent({
width: this.width,
loader: this.loader,
opacity: 0.3,
lockScroll: true,
}, this.exampleSlots);
// simulate async call
Expand All @@ -109,4 +110,3 @@ export default defineComponent({
}
})
</script>

15 changes: 9 additions & 6 deletions src/js/Component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,15 @@ export default defineComponent({
active(value) {
this.isActive = value
},
isActive(value) {
if (value) {
this.disableScroll();
} else {
this.enableScroll()
}
isActive: {
handler (value) {
if (value) {
this.disableScroll();
} else {
this.enableScroll()
}
},
immediate: true
}
},
computed: {
Expand Down

0 comments on commit 0c576b1

Please sign in to comment.