diff --git a/packages/primevue/src/password/BasePassword.vue b/packages/primevue/src/password/BasePassword.vue index 5723bdfcc..f7c72b494 100644 --- a/packages/primevue/src/password/BasePassword.vue +++ b/packages/primevue/src/password/BasePassword.vue @@ -141,7 +141,7 @@ export default { }, autofocus: { type: Boolean, - default: false + default: null } }, style: PasswordStyle, diff --git a/packages/primevue/src/password/Password.d.ts b/packages/primevue/src/password/Password.d.ts index f850ecd4a..d06f54320 100755 --- a/packages/primevue/src/password/Password.d.ts +++ b/packages/primevue/src/password/Password.d.ts @@ -252,6 +252,11 @@ export interface PasswordProps extends InputHTMLAttributes { * @defaultValue null */ fluid?: boolean | undefined; + /** + * When present, it specifies that an input element should automatically get focus when the page loads. + * @defaultValue null + */ + autofocus?: boolean | undefined; /** * Identifier of the underlying input element. */