@eturnity/eturnity_reusable_components 7.37.5-EPDM-10434.0 → 7.37.5-EPDM-7173.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -44,7 +44,6 @@
|
|
44
44
|
:type="inputTypeData"
|
45
45
|
:value="value"
|
46
46
|
@blur="onInputBlur"
|
47
|
-
@focus="onInputFocus"
|
48
47
|
@input="onChangeHandler"
|
49
48
|
@keyup.enter="onEnterPress"
|
50
49
|
/>
|
@@ -368,9 +367,6 @@
|
|
368
367
|
this.validateInput($event.target.value)
|
369
368
|
this.$emit('input-blur', $event.target.value)
|
370
369
|
},
|
371
|
-
onInputFocus($event) {
|
372
|
-
this.$emit('input-focus', $event.target.value)
|
373
|
-
},
|
374
370
|
toggleShowPassword() {
|
375
371
|
this.inputTypeData =
|
376
372
|
this.inputTypeData === 'password' ? 'text' : 'password'
|
@@ -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 }) {
|