composer: turn off browser autocomplete

This commit is contained in:
Drew DeVault 2021-05-27 18:16:05 -04:00 committed by Simon Ser
parent fc9dfa2dca
commit 6491f7e915

View File

@ -81,7 +81,15 @@ export default class Composer extends Component {
render() { render() {
return html` return html`
<form id="composer" class="${this.props.readOnly && !this.state.text ? "read-only" : ""}" onInput=${this.handleInput} onSubmit=${this.handleSubmit}> <form id="composer" class="${this.props.readOnly && !this.state.text ? "read-only" : ""}" onInput=${this.handleInput} onSubmit=${this.handleSubmit}>
<input type="text" name="text" ref=${this.textInput} value=${this.state.text} placeholder="Type a message" onKeyDown=${this.handleInputKeyDown}/> <input
type="text"
name="text"
ref=${this.textInput}
value=${this.state.text}
autocomplete="off"
placeholder="Type a message"
onKeyDown=${this.handleInputKeyDown}
/>
</form> </form>
`; `;
} }