Commit 5c607b029954c3bbab94ea4db3a08e27246ea33a
1 parent
c42d4eeace
Exists in
master
add a little ux touch to document editor
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
imports/ui/components/DocumentEditor.js
... | ... | @@ -7,6 +7,7 @@ import documentEditor from '../../modules/document-editor.js'; |
7 | 7 | export default class DocumentEditor extends React.Component { |
8 | 8 | componentDidMount() { |
9 | 9 | documentEditor({ component: this }); |
10 | + setTimeout(() => { document.querySelector('[name="title"]').focus(); }, 0); | |
10 | 11 | } |
11 | 12 | |
12 | 13 | render() { | ... | ... |