feat(FlowSubstep): show autocomplete option value

This commit is contained in:
Ali BARIN
2022-12-04 22:33:28 +01:00
parent e451dd2262
commit 4ab76e7507
3 changed files with 26 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ type InputCreatorProps = {
namePrefix?: string;
stepId?: string;
disabled?: boolean;
showOptionValue?: boolean;
};
type RawOption = {
@@ -27,7 +28,15 @@ const optionGenerator = (options: RawOption[]): IFieldDropdownOption[] =>
export default function InputCreator(
props: InputCreatorProps
): React.ReactElement {
const { onChange, onBlur, schema, namePrefix, stepId, disabled } = props;
const {
onChange,
onBlur,
schema,
namePrefix,
stepId,
disabled,
showOptionValue,
} = props;
const {
key: name,
@@ -62,6 +71,7 @@ export default function InputCreator(
description={description}
loading={loading}
disabled={disabled}
showOptionValue={showOptionValue}
/>
);
}