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 @@