Skip to content

Commit 642d7ff

Browse files
committed
fix(RadioGroup): orientation logic
1 parent 94f51eb commit 642d7ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/fields/RadioGroup/RadioGroup.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ const RadioGroupElement = tasty({
7979
});
8080

8181
function RadioGroup(props: WithNullableValue<CubeRadioGroupProps>, ref) {
82+
let orientation = props.orientation;
83+
8284
props = castNullableStringValue(props);
8385
props = useProviderProps(props);
8486
props = useFormProps(props);
@@ -90,10 +92,10 @@ function RadioGroup(props: WithNullableValue<CubeRadioGroupProps>, ref) {
9092
labelPosition = 'top',
9193
isInvalid,
9294
children,
93-
orientation,
9495
styles,
9596
groupStyles,
9697
insideForm,
98+
// orientation, // ignore orientation since it came from the form context
9799
labelProps: baseLabelProps,
98100
size,
99101
buttonType,

0 commit comments

Comments
 (0)