mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Circumventing autofill by using a textarea rather than an input type=text
This commit is contained in:
parent
0f73c4326e
commit
d1398b137a
1 changed files with 3 additions and 4 deletions
|
@ -228,7 +228,7 @@ module.exports = React.createClass({
|
|||
);
|
||||
} else {
|
||||
query = (
|
||||
<input type="text"
|
||||
<textarea rows="1"
|
||||
id="textinput"
|
||||
ref="textinput"
|
||||
className="mx_ChatInviteDialog_input"
|
||||
|
@ -236,9 +236,8 @@ module.exports = React.createClass({
|
|||
placeholder={this.props.placeholder}
|
||||
defaultValue={this.props.value}
|
||||
autoFocus={this.props.focus}
|
||||
onKeyDown={this.onKeyDown}
|
||||
autoComplete="off"
|
||||
size="64"/>
|
||||
onKeyDown={this.onKeyDown}>
|
||||
</textarea>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue