Skip to content

Commit

Permalink
web/remote_access: use textarea instead of InputText.
Browse files Browse the repository at this point in the history
This allows to write multi-line-notes. Part of Tinkerforge/esp32-remote-access#132
  • Loading branch information
ffreddow committed Dec 19, 2024
1 parent 6d9a273 commit 37da84f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion software/web/src/modules/remote_access/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ export class RemoteAccess extends ConfigComponent<"remote_access/config", {}, Re
placeholder="" />
</FormRow>
<FormRow label={__("remote_access.content.note")} label_muted={__("remote_access.content.note_muted")(this.state.relay_host)}>
<InputText maxLength={128} value={this.state.addUser.note} onValue={(v) => this.setState({addUser: {...this.state.addUser, note: v}})}/>
{/* <InputText maxLength={128} value={this.state.addUser.note} /> */}
<textarea maxLength={128} style={{width: "100%"}} value={this.state.addUser.note} onInput={(v) => this.setState({addUser: {...this.state.addUser, note: (v.target as HTMLInputElement).value}})}/>
</FormRow>
</>
}}
Expand Down

0 comments on commit 37da84f

Please sign in to comment.