Skip to content

Commit

Permalink
1/n remove GK on flushSync
Browse files Browse the repository at this point in the history
Summary:
This has been running in production for some time and causes no problems, in
sync or async. Let's remove the GK check and make it the default behavior where
supported.

Reviewed By: sophiebits

Differential Revision: D7116729

fbshipit-source-id: f590508ea50de9639d821e1f2c8556e20c8ac54f
  • Loading branch information
flarnie authored and facebook-github-bot committed Mar 2, 2018
1 parent 7eb2a50 commit 4241f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/base/DraftEditor.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class DraftEditor extends React.Component<DraftEditorProps, State> {
if (!this.props.readOnly) {
const method = this._handler && this._handler[eventName];
if (method) {
if (flushControlled && gkx('draft_js_flush_sync')) {
if (flushControlled) {
flushControlled(() => method(this, e));
} else {
method(this, e);
Expand Down

0 comments on commit 4241f43

Please sign in to comment.