Commit db32ac8
Fix get display same slide (#480)
* change getDisplaySameSlide.js to handle children arrays
Current code of getDisplaySameSlide.js was not handling correctly the situation of having children inside an array (common case for dynamic amount of children).
Updated the code so that we use React.Children that traverses nested children arrays
* Update getDisplaySameSlide.js
* remove parentheses to make linter happy
* Update getDisplaySameSlide.js
* Make linter happy by adding some parentheses
* Update getDisplaySameSlide.js
* fix getDisplaySameSlide
* add test1 parent 85f1754 commit db32ac8
File tree
2 files changed
+30
-5
lines changed- packages/react-swipeable-views-core/src
2 files changed
+30
-5
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | | - | |
6 | | - | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
129 | 151 | | |
0 commit comments