diff --git a/packages/primevue/src/password/BasePassword.vue b/packages/primevue/src/password/BasePassword.vue index f87e62d9b4..5723bdfcc4 100644 --- a/packages/primevue/src/password/BasePassword.vue +++ b/packages/primevue/src/password/BasePassword.vue @@ -138,6 +138,10 @@ export default { ariaLabel: { type: String, default: null + }, + autofocus: { + type: Boolean, + default: false } }, style: PasswordStyle, diff --git a/packages/primevue/src/password/Password.vue b/packages/primevue/src/password/Password.vue index 85f51bc296..9e57658e74 100755 --- a/packages/primevue/src/password/Password.vue +++ b/packages/primevue/src/password/Password.vue @@ -18,6 +18,7 @@ :disabled="disabled" :variant="variant" :invalid="invalid" + :autofocus="autofocus" @input="onInput" @focus="onFocus" @blur="onBlur"