@eturnity/eturnity_reusable_components 7.39.0 → 7.39.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -157,7 +157,7 @@
|
|
157
157
|
isOpen: {
|
158
158
|
immediate: true,
|
159
159
|
handler(isOpen) {
|
160
|
-
document.body.style.overflow = isOpen ? 'hidden' :
|
160
|
+
document.body.style.overflow = isOpen ? 'hidden' : null
|
161
161
|
if (isOpen) {
|
162
162
|
window.addEventListener('keydown', this.handleKeyDown)
|
163
163
|
} else {
|
@@ -166,11 +166,13 @@
|
|
166
166
|
},
|
167
167
|
},
|
168
168
|
},
|
169
|
-
|
169
|
+
beforeUnmount() {
|
170
|
+
document.body.style.overflow = null
|
170
171
|
window.removeEventListener('keydown', this.handleKeyDown)
|
171
172
|
},
|
172
173
|
methods: {
|
173
174
|
onCloseModal() {
|
175
|
+
document.body.style.overflow = null
|
174
176
|
this.$emit('on-close')
|
175
177
|
},
|
176
178
|
handleKeyDown({ key }) {
|