Skip to content

Commit

Permalink
Merge pull request #357 from f-eld-ch/fix/email-receiver-details-hint
Browse files Browse the repository at this point in the history
fix(ui): adds missing autocomplete for email receiver details
  • Loading branch information
lukastresch authored Mar 6, 2024
2 parents 5a48958 + beca908 commit c60ae37
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions ui/src/views/journal/EditorForms/Elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,18 @@ const ReceiverDetailInput = (props: { placeholder: string }) => {
const { state, dispatch } = useEditorContext();
return (
<div className="control is-expanded">
<input
className="input"
value={state.receiverDetail}
type="text"
onChange={(e) => {
e.preventDefault();
dispatch({ type: 'set_media_detail', detail: Object.assign({}, state.media, { type: state.media, receiver: e.target.value }) });
}}
placeholder={props.placeholder}
/>
<Hint options={state.autocompleteDetails.senderReceiverDetails} allowTabFill={true} allowEnterFill={true} >
<input
className="input"
value={state.receiverDetail}
type="text"
onChange={(e) => {
e.preventDefault();
dispatch({ type: 'set_media_detail', detail: Object.assign({}, state.media, { type: state.media, receiver: e.target.value }) });
}}
placeholder={props.placeholder}
/>
</Hint>
</div>
)
}
Expand Down

0 comments on commit c60ae37

Please sign in to comment.