From 9e428a1a152248bb90bc288632b5c315ec15f981 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Wed, 8 May 2024 09:53:12 +0300 Subject: [PATCH] Fixed #5664 - [v4 beta1: InputMask] Placeholder attribute does not work --- components/lib/inputmask/BaseInputMask.vue | 4 ++++ components/lib/inputmask/InputMask.d.ts | 4 ++++ components/lib/inputmask/InputMask.vue | 1 + 3 files changed, 9 insertions(+) diff --git a/components/lib/inputmask/BaseInputMask.vue b/components/lib/inputmask/BaseInputMask.vue index e630210ee..6793411d8 100644 --- a/components/lib/inputmask/BaseInputMask.vue +++ b/components/lib/inputmask/BaseInputMask.vue @@ -15,6 +15,10 @@ export default { type: String, default: null }, + placeholder: { + type: String, + default: null + }, autoClear: { type: Boolean, default: true diff --git a/components/lib/inputmask/InputMask.d.ts b/components/lib/inputmask/InputMask.d.ts index 017204381..5cd23b4a4 100755 --- a/components/lib/inputmask/InputMask.d.ts +++ b/components/lib/inputmask/InputMask.d.ts @@ -111,6 +111,10 @@ export interface InputMaskProps { * Mask pattern. */ mask?: string | undefined; + /** + * Placeholder text for the input. + */ + placeholder?: string | undefined; /** * Clears the incomplete value on blur. * @defaultValue true diff --git a/components/lib/inputmask/InputMask.vue b/components/lib/inputmask/InputMask.vue index 20ae6c937..553d362a1 100755 --- a/components/lib/inputmask/InputMask.vue +++ b/components/lib/inputmask/InputMask.vue @@ -6,6 +6,7 @@ :disabled="disabled" :invalid="invalid" :variant="variant" + :placeholder="placeholder" :unstyled="unstyled" @input="onInput" @focus="onFocus"