You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Circumventing autofill by using a textarea rather than an input type=text
This commit is contained in:
@@ -228,7 +228,7 @@ module.exports = React.createClass({
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
query = (
|
query = (
|
||||||
<input type="text"
|
<textarea rows="1"
|
||||||
id="textinput"
|
id="textinput"
|
||||||
ref="textinput"
|
ref="textinput"
|
||||||
className="mx_ChatInviteDialog_input"
|
className="mx_ChatInviteDialog_input"
|
||||||
@@ -236,9 +236,8 @@ module.exports = React.createClass({
|
|||||||
placeholder={this.props.placeholder}
|
placeholder={this.props.placeholder}
|
||||||
defaultValue={this.props.value}
|
defaultValue={this.props.value}
|
||||||
autoFocus={this.props.focus}
|
autoFocus={this.props.focus}
|
||||||
onKeyDown={this.onKeyDown}
|
onKeyDown={this.onKeyDown}>
|
||||||
autoComplete="off"
|
</textarea>
|
||||||
size="64"/>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user