Skip to content

Commit 13966fa

Browse files
committed
fix(pf4): use options from field hook
1 parent 189a268 commit 13966fa

File tree

1 file changed

+2
-2
lines changed
  • packages/pf4-component-mapper/src/radio

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ RadioOption.propTypes = {
3030
radioGroupValue: PropTypes.any,
3131
};
3232

33-
const Radio = ({ name, options, type, ...props }) => {
33+
const Radio = ({ name, type, ...props }) => {
3434
/**
3535
* You cannot assign type radio to PF4 radio buttons input. It will break and will not set input value, only checked property
3636
* It has to be reqular input and we have change the radio value manully to the option value
3737
*/
38-
const { label, isRequired, helperText, meta, validateOnMount, description, hideLabel, input, isReadOnly, isDisabled, id, FormGroupProps } =
38+
const { label, isRequired, helperText, meta, validateOnMount, description, hideLabel, input, isReadOnly, isDisabled, id, FormGroupProps, options } =
3939
useFieldApi({
4040
name,
4141
...props,

0 commit comments

Comments
 (0)