From 1016d2df5f0bcec74a8405717b50365c30ed5e25 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Thu, 3 Oct 2024 12:33:19 +0300 Subject: [PATCH] Fixed #6505 --- packages/primevue/src/inputmask/BaseInputMask.vue | 4 ++++ packages/primevue/src/inputmask/InputMask.d.ts | 5 +++++ packages/primevue/src/inputmask/InputMask.vue | 1 + packages/primevue/src/inputtext/BaseInputText.vue | 4 ++++ packages/primevue/src/inputtext/InputText.d.ts | 5 +++++ packages/primevue/src/inputtext/InputText.vue | 2 +- 6 files changed, 20 insertions(+), 1 deletion(-) diff --git a/packages/primevue/src/inputmask/BaseInputMask.vue b/packages/primevue/src/inputmask/BaseInputMask.vue index cc451293e..83ba6bb3d 100644 --- a/packages/primevue/src/inputmask/BaseInputMask.vue +++ b/packages/primevue/src/inputmask/BaseInputMask.vue @@ -19,6 +19,10 @@ export default { type: [String, Object], default: null }, + type: { + type: String, + default: null + }, mask: { type: String, default: null diff --git a/packages/primevue/src/inputmask/InputMask.d.ts b/packages/primevue/src/inputmask/InputMask.d.ts index 9717665d9..ef40af2a2 100755 --- a/packages/primevue/src/inputmask/InputMask.d.ts +++ b/packages/primevue/src/inputmask/InputMask.d.ts @@ -124,6 +124,11 @@ export interface InputMaskProps { * Style class of the input field. */ class?: string | object | undefined; + /** + * Type of the input field. + * @defaultValue null + */ + type?: string | undefined; /** * Placeholder text for the input. */ diff --git a/packages/primevue/src/inputmask/InputMask.vue b/packages/primevue/src/inputmask/InputMask.vue index f03c84e25..992b7121a 100755 --- a/packages/primevue/src/inputmask/InputMask.vue +++ b/packages/primevue/src/inputmask/InputMask.vue @@ -2,6 +2,7 @@ ; + /** + * Type of the input field. + * @defaultValue text + */ + type?: string | undefined; /** * Defines the size of the component. */ diff --git a/packages/primevue/src/inputtext/InputText.vue b/packages/primevue/src/inputtext/InputText.vue index 9a76a50f7..5c3e7a608 100755 --- a/packages/primevue/src/inputtext/InputText.vue +++ b/packages/primevue/src/inputtext/InputText.vue @@ -1,5 +1,5 @@