~emersion/public-inbox

gamja: composer: turn off browser autocomplete v1 APPLIED

Drew DeVault: 1
 composer: turn off browser autocomplete

 1 files changed, 9 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/23036/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gamja] composer: turn off browser autocomplete Export this patch

---
 components/composer.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/components/composer.js b/components/composer.js
index 14f7506..9251a72 100644
--- a/components/composer.js
+++ b/components/composer.js
@@ -81,7 +81,15 @@ export default class Composer extends Component {
	render() {
		return html`
			<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>
		`;
	}
-- 
2.31.1
Pushed, thanks!