mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Fixed #5664 - [v4 beta1: InputMask] Placeholder attribute does not work
This commit is contained in:
parent
a25418eef3
commit
9e428a1a15
3 changed files with 9 additions and 0 deletions
|
@ -15,6 +15,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
|
placeholder: {
|
||||||
|
type: String,
|
||||||
|
default: null
|
||||||
|
},
|
||||||
autoClear: {
|
autoClear: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
|
4
components/lib/inputmask/InputMask.d.ts
vendored
4
components/lib/inputmask/InputMask.d.ts
vendored
|
@ -111,6 +111,10 @@ export interface InputMaskProps {
|
||||||
* Mask pattern.
|
* Mask pattern.
|
||||||
*/
|
*/
|
||||||
mask?: string | undefined;
|
mask?: string | undefined;
|
||||||
|
/**
|
||||||
|
* Placeholder text for the input.
|
||||||
|
*/
|
||||||
|
placeholder?: string | undefined;
|
||||||
/**
|
/**
|
||||||
* Clears the incomplete value on blur.
|
* Clears the incomplete value on blur.
|
||||||
* @defaultValue true
|
* @defaultValue true
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:invalid="invalid"
|
:invalid="invalid"
|
||||||
:variant="variant"
|
:variant="variant"
|
||||||
|
:placeholder="placeholder"
|
||||||
:unstyled="unstyled"
|
:unstyled="unstyled"
|
||||||
@input="onInput"
|
@input="onInput"
|
||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue