File tree 4 files changed +23
-3
lines changed
4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to this project will be documented in this file.
3
3
This project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
4
4
5
+ ## [ Unreleased]
6
+ ### Fixed
7
+ - [ #1778 ] ( https://github.com/plotly/dash/pull/1778 ) Fix React warnings stating
8
+ that each child in a list should have a unique "key" prop
9
+
5
10
## [ 4.12.0] - 2021-07-09
6
11
### Fixed
7
12
- [ #907 ] ( https://github.com/plotly/dash-table/pull/907 )
Original file line number Diff line number Diff line change 5
5
</ head >
6
6
< body >
7
7
< div id ='root '> </ div >
8
- < script src ='https://unpkg.com/react@17.0.1 /umd/react.production.min .js '> </ script >
9
- < script src ='https://unpkg.com/react-dom@17.0.1 /umd/react-dom.production.min .js '> </ script >
8
+ < script src ='https://unpkg.com/react@16.14.0 /umd/react.development .js '> </ script >
9
+ < script src ='https://unpkg.com/react-dom@16.14.0 /umd/react-dom.development .js '> </ script >
10
10
11
11
< script src ="./demo.js "> </ script >
12
12
</ body >
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ function getter(
283
283
) ;
284
284
285
285
return (
286
- < div >
286
+ < div key = { columnIndex } >
287
287
{ ! column_selectable || ! selectable ? null : (
288
288
< span className = 'column-header--select' >
289
289
< input
Original file line number Diff line number Diff line change @@ -127,3 +127,18 @@ def test_head004_change_single_row_header(test):
127
127
128
128
assert target .column ("rows" ).get_text (0 ) == "Chill"
129
129
assert test .get_log_errors () == []
130
+
131
+
132
+ def test_head005_no_warnings_emitted (test ):
133
+ test .start_server (
134
+ get_app (dict (merge_duplicate_headers = True )),
135
+ debug = True ,
136
+ use_reloader = False ,
137
+ use_debugger = True ,
138
+ dev_tools_hot_reload = False ,
139
+ )
140
+
141
+ target = test .table ("table" )
142
+
143
+ wait .until (lambda : target .column (6 ).get ().get_attribute ("colspan" ) == "4" , 3 )
144
+ assert test .get_logs () == []
You can’t perform that action at this time.
0 commit comments