Adds autoFocus attribute in input element to support enter functionality (#2701)

This commit is contained in:
Manish Kushare 2022-04-03 12:51:44 +05:30 committed by GitHub
parent 256e691e5f
commit 4355911db4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -862,6 +862,7 @@ class Editor extends React.Component {
defaultValue={this.state.initVersionName}
onChange={(e) => this.setState({ initVersionName: e.target.value })}
onKeyPress={(e) => this.handleKeyPress(e)}
autoFocus={true}
/>
</div>
</div>