1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

focus content editor after create new Note

This commit is contained in:
Dick Choi
2016-06-12 19:55:39 +09:00
parent eb1a0ba49f
commit ce915df2b2
7 changed files with 65 additions and 7 deletions

View File

@@ -12,14 +12,11 @@ class NoteList extends React.Component {
}
componentDidMount () {
// this.refreshTimer = setInterval(() => this.forceUpdate(), 60 * 1000)
// ipc.on('list-focus', this.focusHandler)
// this.focus()
this.refreshTimer = setInterval(() => this.forceUpdate(), 60 * 1000)
}
componentWillUnmount () {
// clearInterval(this.refreshTimer)
// ipc.removeListener('list-focus', this.focusHandler)
clearInterval(this.refreshTimer)
}
componentDidUpdate () {