Commit 727b795cd36825f342b8a813e2068856f9efc671
1 parent
e96fa06d
reset body scroll when Modal beforeDestroy
reset body scroll when Modal beforeDestroy
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/components/modal/modal.vue
| @@ -186,6 +186,7 @@ | @@ -186,6 +186,7 @@ | ||
| 186 | }, | 186 | }, |
| 187 | beforeDestroy () { | 187 | beforeDestroy () { |
| 188 | document.removeEventListener('keydown', this.EscClose); | 188 | document.removeEventListener('keydown', this.EscClose); |
| 189 | + this.removeScrollEffect(); | ||
| 189 | }, | 190 | }, |
| 190 | watch: { | 191 | watch: { |
| 191 | visible (val) { | 192 | visible (val) { |