From 1c3c96d38a17693b0335d850cef1dce7e7971179 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 27 Sep 2024 09:04:56 +0300 Subject: [PATCH] Refactor #6413 --- packages/primevue/src/password/BasePassword.vue | 2 +- packages/primevue/src/password/Password.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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. */