fix: radio and list sort init

This commit is contained in:
Ibrahima G. Coulibaly
2024-06-27 20:27:03 +01:00
parent 8650703266
commit a6eb5d59e9
11 changed files with 180 additions and 79 deletions

View File

@@ -67,7 +67,7 @@ export default function SplitText() {
withTextField ? (
<RadioWithTextField
key={type}
radioValue={type}
checked={type === values.extractionType}
title={title}
fieldName={'extractionType'}
description={description}
@@ -76,9 +76,7 @@ export default function SplitText() {
? values[textValueAccessor].toString()
: ''
}
onRadioChange={(type) =>
setFieldValue('extractionType', type)
}
onRadioClick={() => setFieldValue('extractionType', type)}
onTextChange={(val) =>
textValueAccessor
? setFieldValue(textValueAccessor, val)
@@ -88,9 +86,8 @@ export default function SplitText() {
) : (
<SimpleRadio
key={title}
onChange={() => setFieldValue('extractionType', type)}
fieldName={'extractionType'}
value={values.extractionType}
onClick={() => setFieldValue('extractionType', type)}
checked={values.extractionType === type}
description={description}
title={title}
/>