From 56b76bc96a1947b4a5004e841cf81511c0e47aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=B0=AC=EB=AF=BC?= Date: Fri, 27 Sep 2024 12:48:03 +0900 Subject: [PATCH] feat: add autofocus property on component --- packages/primevue/src/password/BasePassword.vue | 4 ++++ packages/primevue/src/password/Password.vue | 1 + 2 files changed, 5 insertions(+) diff --git a/packages/primevue/src/password/BasePassword.vue b/packages/primevue/src/password/BasePassword.vue index f87e62d9b..5723bdfcc 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 85f51bc29..9e57658e7 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"