From 133291b6d306b738c3c2370430dd4875895c0392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 1 Sep 2022 17:25:54 +0300 Subject: [PATCH] Fixed #2880 - Password: Unable to add invalid event listener after 3.16 --- src/components/password/Password.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue index 783f83c66..51501a482 100755 --- a/src/components/password/Password.vue +++ b/src/components/password/Password.vue @@ -2,7 +2,7 @@
+ @input="onInput" @focus="onFocus" @blur="onBlur" @keyup="onKeyUp" @invalid="onInvalid" v-bind="inputProps" /> {{infoText}} @@ -32,7 +32,7 @@ import Portal from 'primevue/portal'; export default { name: 'Password', - emits: ['update:modelValue', 'change', 'focus', 'blur'], + emits: ['update:modelValue', 'change', 'focus', 'blur', 'invalid'], props: { modelValue: String, promptLabel: { @@ -245,6 +245,9 @@ export default { } } }, + onInvalid(event) { + this.$emit('invalid', event); + }, bindScrollListener() { if (!this.scrollHandler) { this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.input.$el, () => {