+
)
}
diff --git a/packages/ui/src/fields/RadioGroup/index.scss b/packages/ui/src/fields/RadioGroup/index.scss
index ea84d1d87..1759f2593 100644
--- a/packages/ui/src/fields/RadioGroup/index.scss
+++ b/packages/ui/src/fields/RadioGroup/index.scss
@@ -1,10 +1,6 @@
@import '../../scss/styles.scss';
.radio-group {
- &__error-wrap {
- position: relative;
- }
-
&--layout-horizontal {
ul {
display: flex;
diff --git a/packages/ui/src/fields/RadioGroup/index.tsx b/packages/ui/src/fields/RadioGroup/index.tsx
index 6d2b32f29..0c68e8e18 100644
--- a/packages/ui/src/fields/RadioGroup/index.tsx
+++ b/packages/ui/src/fields/RadioGroup/index.tsx
@@ -99,57 +99,58 @@ const RadioGroupField: React.FC
= (props) => {
width,
}}
>
-
-
-
-
- {options.map((option) => {
- let optionValue = ''
+
+
- if (optionIsObject(option)) {
- optionValue = option.value
- } else {
- optionValue = option
- }
+
+ {options.map((option) => {
+ let optionValue = ''
- const isSelected = String(optionValue) === String(value)
+ if (optionIsObject(option)) {
+ optionValue = option.value
+ } else {
+ optionValue = option
+ }
- const id = `field-${path}-${optionValue}${uuid ? `-${uuid}` : ''}`
+ const isSelected = String(optionValue) === String(value)
- return (
- -
- {
- if (typeof onChangeFromProps === 'function') {
- onChangeFromProps(optionValue)
- }
+ const id = `field-${path}-${optionValue}${uuid ? `-${uuid}` : ''}`
- if (!readOnly) {
- setValue(optionValue)
- }
- }}
- option={optionIsObject(option) ? option : { label: option, value: option }}
- path={path}
- readOnly={readOnly}
- uuid={uuid}
- />
-
- )
- })}
-
- {CustomDescription !== undefined ? (
- CustomDescription
- ) : (
-
- )}
+ return (
+
-
+ {
+ if (typeof onChangeFromProps === 'function') {
+ onChangeFromProps(optionValue)
+ }
+
+ if (!readOnly) {
+ setValue(optionValue)
+ }
+ }}
+ option={optionIsObject(option) ? option : { label: option, value: option }}
+ path={path}
+ readOnly={readOnly}
+ uuid={uuid}
+ />
+
+ )
+ })}
+
+ {CustomDescription !== undefined ? (
+ CustomDescription
+ ) : (
+
+ )}
+
)
}
diff --git a/packages/ui/src/fields/Relationship/index.tsx b/packages/ui/src/fields/Relationship/index.tsx
index 0db05a2bf..e8cb54fb4 100644
--- a/packages/ui/src/fields/Relationship/index.tsx
+++ b/packages/ui/src/fields/Relationship/index.tsx
@@ -471,116 +471,119 @@ const RelationshipField: React.FC