mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-16 07:46:32 +00:00
Clear send field after sending the value
Signed-off-by: jbicker <jan.bicker@typefox.io>
This commit is contained in:
parent
c81ee1ede2
commit
592086466c
@ -48,6 +48,7 @@ export class SerialMonitorSendField extends React.Component<SerialMonitorSendFie
|
||||
|
||||
protected handleSubmit(event: React.FormEvent<HTMLFormElement>) {
|
||||
this.props.onSend(this.state.value);
|
||||
this.setState({ value: '' });
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user