We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c54849 commit 449c7e2Copy full SHA for 449c7e2
src/views/save-overlay.js
@@ -39,14 +39,11 @@ class SaveOverlay extends React.Component {
39
this.focusInput();
40
}
41
42
- componentDidUpdate() {
43
- this.focusInput();
44
- }
45
-
46
componentWillReceiveProps(nextProps){
47
const { typing } = this.state;
48
49
if(!typing){
+ this.focusInput();
50
this.setState({ filename: nextProps.defaultFilename });
51
52
@@ -55,8 +52,7 @@ class SaveOverlay extends React.Component {
55
const { filename } = this.state;
56
53
57
54
const {
58
- saveFileAs,
59
- hideOverlay
+ saveFileAs
60
} = this.props.handlers;
61
62
saveFileAs(filename);
0 commit comments