Skip to content

Commit

Permalink
Fixed #5664 - [v4 beta1: InputMask] Placeholder attribute does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed May 8, 2024
1 parent a25418e commit 9e428a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/lib/inputmask/BaseInputMask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export default {
type: String,
default: null
},
placeholder: {
type: String,
default: null
},
autoClear: {
type: Boolean,
default: true
Expand Down
4 changes: 4 additions & 0 deletions components/lib/inputmask/InputMask.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions components/lib/inputmask/InputMask.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:disabled="disabled"
:invalid="invalid"
:variant="variant"
:placeholder="placeholder"
:unstyled="unstyled"
@input="onInput"
@focus="onFocus"
Expand Down

0 comments on commit 9e428a1

Please sign in to comment.