diff --git a/src/components/app.jsx b/src/components/app.jsx index 9f6bb63..2db7cb0 100644 --- a/src/components/app.jsx +++ b/src/components/app.jsx @@ -1029,14 +1029,17 @@ export default class App extends Component { } titleInputBlurHandler(e) { - this.setState({ - currentItem: { ...this.state.currentItem, title: e.target.value } - }); - - if (this.state.currentItem.id) { - this.saveItem(); - trackEvent('ui', 'titleChanged'); - } + this.setState( + { + currentItem: { ...this.state.currentItem, title: e.target.value } + }, + () => { + if (this.state.currentItem.id) { + this.saveItem(); + trackEvent('ui', 'titleChanged'); + } + } + ); } /**