Render placeholder text in the Key Value form input (#3452)
This commit is contained in:
parent
bb9a9a307f
commit
6f4f2bb26c
|
|
@ -43,6 +43,7 @@ export interface ControlData {
|
|||
dataType?: InputType;
|
||||
isRequired?: boolean;
|
||||
hidden?: HiddenType;
|
||||
placeholderText?: string;
|
||||
}
|
||||
|
||||
export interface ControlFunctions {
|
||||
|
|
|
|||
|
|
@ -104,6 +104,9 @@ const KeyValueRow = (props: KeyValueArrayProps & WrappedFieldArrayProps) => {
|
|||
name={`${field}.${keyName[1]}`}
|
||||
showError
|
||||
validate={keyFieldValidate}
|
||||
placeholder={
|
||||
(extraData && extraData[0].placeholderText) || ""
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
{!props.actionConfig && (
|
||||
|
|
@ -116,6 +119,9 @@ const KeyValueRow = (props: KeyValueArrayProps & WrappedFieldArrayProps) => {
|
|||
<StyledTextField
|
||||
name={`${field}.${valueName[1]}`}
|
||||
type={valueDataType}
|
||||
placeholder={
|
||||
(extraData && extraData[1].placeholderText) || ""
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
{index === props.fields.length - 1 ? (
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user