Skip to content

Commit dca71fa

Browse files
committed
Revert "Add focus setting when opening the circle column"
This reverts commit 3a93ac99312a13b68b7edc2b81313fb0ffb7bcdc.
1 parent 0a1bc83 commit dca71fa

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

app/javascript/mastodon/features/circles/components/new_circle_form.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ class NewCircleForm extends React.PureComponent {
3232
onSubmit: PropTypes.func.isRequired,
3333
};
3434

35-
componentDidMount() {
36-
this.input.focus();
37-
}
38-
3935
handleChange = e => {
4036
this.props.onChange(e.target.value);
4137
}
@@ -49,10 +45,6 @@ class NewCircleForm extends React.PureComponent {
4945
this.props.onSubmit();
5046
}
5147

52-
setRef = (c) => {
53-
this.input = c;
54-
}
55-
5648
render () {
5749
const { value, disabled, intl } = this.props;
5850

@@ -70,7 +62,6 @@ class NewCircleForm extends React.PureComponent {
7062
disabled={disabled}
7163
onChange={this.handleChange}
7264
placeholder={label}
73-
ref={this.setRef}
7465
/>
7566
</label>
7667

0 commit comments

Comments
 (0)