From 6a26a82b98f229933e483703ba702097840a0706 Mon Sep 17 00:00:00 2001 From: Claudio Procida Date: Tue, 26 Feb 2019 12:39:57 -0800 Subject: [PATCH] Restores flow error suppression for fbjs@1.0.0 (#2014) Summary: **Summary** Restores a flow error suppression annotation removed with D14074027 **Test Plan** `yarn run flow` No errors Pull Request resolved: https://github.com/facebook/draft-js/pull/2014 Reviewed By: dsainati1 Differential Revision: D14229161 Pulled By: dsainati1 fbshipit-source-id: b169d832d0b50e3366a94d53ae7e60ca89035ae7 --- src/component/contents/DraftEditorContents-core.react.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/component/contents/DraftEditorContents-core.react.js b/src/component/contents/DraftEditorContents-core.react.js index c5ce2ed33c..dfea77f1f3 100644 --- a/src/component/contents/DraftEditorContents-core.react.js +++ b/src/component/contents/DraftEditorContents-core.react.js @@ -197,6 +197,7 @@ class DraftEditorContents extends React.Component { lastWrapperTemplate !== wrapperTemplate || currentDepth === null || depth > currentDepth; + // $FlowExpectedError joinClasses args in fbjs@1.0.0 are incorrect className = joinClasses( className, getListItemClasses(blockType, depth, shouldResetCount, direction),