This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Commit 186431f
committed
Fix library search result rendering
ReactList may call itemRenderer with an index larger than list length
when the component is being updated. Failing to handle the case causes
the rendering to break due to an unhandled exception.
For example, try searching for "audioq". Until one types "audio",
search results are correctly narrowed, but typing the final letter
"q" does not update the results to zero due to an unhandled exception.
This patch fixes the issue by handling out of band indices in
itemRenderer.
Fixes #11091 parent 943196e commit 186431f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
0 commit comments