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, () => {