Commit 864ecf2
authored
Expose props for disabling auto-correct, auto-complete, auto-capitalize (facebookarchive#1035)
Wanted: manual testing of this PR.
There is some really weird behavior in Android 5.0 when auto-correct happens.
More details here;
facebookarchive#1010
Setting 'spellCheck' to 'false' didn't seem to be enough to stop this.
My quick fix for now is to expose more properties on Draft for
controlling autocorrect. This could also be useful to people in general,
since there are often complaints about autocorrect on mobile web.
Long term we will be addressing the root causes of the bugs with mobile
web, but this seems like a useful change regardless.
We did some testing with mobile web using these props.
Ideally I'd like to get testing done of each prop in each supported
browser, and document the effects. If anyone can help verify different
behaviors please comment here, otherwise I'll get to it soon.
Note that we'll update the documentation once this change is actually
included in a released version of Draft.js.1 parent 47c26cc commit 864ecf2
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
0 commit comments