create flow
This commit is contained in:
@@ -18,6 +18,13 @@ const SongStyle = ({
|
||||
const selected = selectedProp ?? internalSelected;
|
||||
const setSelected = setSelectedProp ?? setInternalSelected;
|
||||
|
||||
const handleOtherStyleChange = (value) => {
|
||||
setOtherStyle?.(value);
|
||||
if (value?.trim()?.length && selected != null) {
|
||||
setSelected(null);
|
||||
}
|
||||
};
|
||||
|
||||
// Selection handled by ListSelection
|
||||
|
||||
return (
|
||||
@@ -42,7 +49,7 @@ const SongStyle = ({
|
||||
label="Tu as un autre style de chanson ?"
|
||||
placeholder="Décrire l’objectif"
|
||||
value={otherStyle}
|
||||
setValue={setOtherStyle}
|
||||
setValue={handleOtherStyleChange}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user