This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Commit 26040e5
Add 'flushSync' to Draft.js for *only* GK folks
Summary:
We did this in https://our.intern.facebook.com/intern/diff/D6727557/ and then it
was reverted due to bugs like
https://our.intern.facebook.com/intern/tasks/?t=25244286
... But we still want to do this! Let's enable under a GK so we can dogfood and
possibly identify repro steps.
Context from original version of this diff -
We have seen various issues with Draft and other controlled text inputs when
React is in "async mode", such that updates are rendered asynchronously.
For more context and repro steps, see #1577
I also added the logic to the plain text editor test page for manual testing, until we write unit tests for this.
Reviewed By: acdlite
Differential Revision: D6802653
fbshipit-source-id: 9f6952e9cb77cf79f9650d167075b1c337e3d35f1 parent f6fbf1c commit 26040e5
File tree
2 files changed
+8
-1
lines changed- src/component
- base
- utils
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
177 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
178 | 184 | | |
179 | 185 | | |
180 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
0 commit comments