Skip to content

Commit

Permalink
add value property to user input (#2825)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
  • Loading branch information
alanlong9278 and cwhitten authored Apr 29, 2020
1 parent 044b1eb commit dc9ec55
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Composer/packages/ui-plugins/prompts/src/PromptField/UserInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ const UserInput: React.FC<PromptFieldProps<MicrosoftInputDialog>> = props => {
rawErrors={getError('outputFormat')}
/>
)}
<SchemaField
name="value"
definitions={definitions}
depth={depth}
id={`${id}.value`}
schema={getSchema('value')}
uiOptions={uiOptions.properties?.value || {}}
value={value?.value}
onChange={onChange('value')}
rawErrors={getError('value')}
/>
{Editor && $kind !== SDKKinds.AttachmentInput && (
<React.Fragment>
<FieldLabel id={`${id}.intent`} label={intentLabel} />
Expand Down

0 comments on commit dc9ec55

Please sign in to comment.