diff --git a/packages/primevue/src/inputmask/BaseInputMask.vue b/packages/primevue/src/inputmask/BaseInputMask.vue index 68f0abddf..cc451293e 100644 --- a/packages/primevue/src/inputmask/BaseInputMask.vue +++ b/packages/primevue/src/inputmask/BaseInputMask.vue @@ -11,6 +11,10 @@ export default { type: String, default: '_' }, + id: { + type: String, + default: null + }, class: { type: [String, Object], default: null @@ -43,6 +47,10 @@ export default { type: Boolean, default: false }, + name: { + type: String, + default: null + }, variant: { type: String, default: null diff --git a/packages/primevue/src/inputmask/InputMask.d.ts b/packages/primevue/src/inputmask/InputMask.d.ts index c926fde3c..9717665d9 100755 --- a/packages/primevue/src/inputmask/InputMask.d.ts +++ b/packages/primevue/src/inputmask/InputMask.d.ts @@ -116,6 +116,10 @@ export interface InputMaskProps { * Mask pattern. */ mask?: string | undefined; + /** + * Identifier of the element. + */ + id?: string | undefined; /** * Style class of the input field. */ @@ -144,6 +148,10 @@ export interface InputMaskProps { * @defaultValue false */ invalid?: boolean | undefined; + /** + * Name of the input element. + */ + name?: string | undefined; /** * Specifies the input variant of the component. * @defaultValue outlined diff --git a/packages/primevue/src/inputmask/InputMask.vue b/packages/primevue/src/inputmask/InputMask.vue index b456fe364..0100ee53a 100755 --- a/packages/primevue/src/inputmask/InputMask.vue +++ b/packages/primevue/src/inputmask/InputMask.vue @@ -1,5 +1,6 @@