Commit dad57fe
Fixes warning for missing keys in example color controls (#1853)
Summary:
**Summary**
Fixes a warning in the color examples for missing keys for elements in an array for the style controls.
```
react.development.js:336 Warning: Each child in an array or iterator should have a unique "key" prop.
Check the render method of `ColorControls`. See https://fb.me/react-warning-keys for more information.
in StyleButton (created by ColorControls)
in ColorControls (created by ColorfulEditorExample)
in div (created by ColorfulEditorExample)
in ColorfulEditorExample
```
**Test Plan**
Manual tests on Chrome, warnings are gone
**Note:** This PR also fixes the [Travis CI build failure](https://travis-ci.org/facebook/draft-js/jobs/424170309) introduced with d267826
Pull Request resolved: facebookarchive/draft-js#1853
Differential Revision: D9654616
fbshipit-source-id: 1e4e9a4ef2eb896306404acc31623076e107b91c1 parent c44b168 commit dad57fe
File tree
4 files changed
+4
-2
lines changed- examples
- draft-0-10-0/color
- draft-0-9-1/color
- meta/bundle-size-stats
4 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
0 commit comments