DraftJS triggers content change on focus?
<p>I have an editor on a page and <code>save</code> button. I want <code>save</code> button only to appear if there are changes (since last save). So, when you save, i set <code>this.setState({hasChanges: false})</code> and in <code>onChange</code> function i set <code>hasChanges</code> to <code>true</code>.</p>

<p>And that's all working fine. The issue is that editor will fire <code>onChange</code> event when editor gain focus (but content is not changed yet). And, that is expected behaviour according to their <a href="https://facebook.github.io/draft-js/docs/advanced-topics-managing-focus.html" rel="noreferrer">documentation</a> </p>

<blockquote>
  <p>The event listeners within the component will observe focus changes
  and propagate them through onChange as expected, so state and DOM will
  remain correctly in sync.</p>
</blockquote>

<p>Is there some way to know if content has changed inside <code>onChange</code> method, or only selection is changed?</p>