Skip to content

Commit 55fa7f3

Browse files
committed
fix(pf4): add missing isRequired prop
1 parent cf9882e commit 55fa7f3

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

packages/pf4-component-mapper/src/text-field/text-field.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ const TextField = (props) => {
3333
id={id || input.name}
3434
FormGroupProps={FormGroupProps}
3535
>
36-
<TextInput {...input} {...showError(meta, validateOnMount)} {...rest} id={id || input.name} isReadOnly={isReadOnly} isDisabled={isDisabled} />
36+
<TextInput
37+
{...input}
38+
{...showError(meta, validateOnMount)}
39+
{...rest}
40+
id={id || input.name}
41+
isRequired={isRequired}
42+
isReadOnly={isReadOnly}
43+
isDisabled={isDisabled}
44+
/>
3745
</FormGroup>
3846
);
3947
};

packages/pf4-component-mapper/src/textarea/textarea.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ const Textarea = (props) => {
3333
id={id || input.name}
3434
FormGroupProps={FormGroupProps}
3535
>
36-
<Pf4TextArea {...showError(meta, validateOnMount)} disabled={isDisabled || isReadOnly} {...input} id={id || input.name} {...rest} />
36+
<Pf4TextArea
37+
{...showError(meta, validateOnMount)}
38+
isRequired={isRequired}
39+
disabled={isDisabled || isReadOnly}
40+
{...input}
41+
id={id || input.name}
42+
{...rest}
43+
/>
3744
</FormGroup>
3845
);
3946
};

0 commit comments

Comments
 (0)