1 留言 (1 留言)0 反應 (0 反應)0 負責人 (0 負責人)TypeScript20,263 star (20,263 star)2,167 fork (2,167 fork)batch import
P2Package: tableType: bughelp wanted
描述
Environment
- Package version(s): 5.3.0
- Operating System: MacOS
- Browser name and version: Chrome 117
Steps to reproduce
- Pass a region of
{ row: [1, Infinity] } to eachUniqueFullRow (this can be caused for example by shift-clicking on a row header cell + using eachUniqueFullRow in the onSelect.
Actual behavior
Spins until tab crashes
Expected behavior
Short circuit or error
- 議題類型
- bug
- 研究方向
- Investigate the `eachUniqueFullRow` function in the Blueprint table source code, likely in the selection utilities (e.g., src/components/table/). Look for how it handles row ranges and specifically when `Infinity` is passed. Consider adding a guard to check for `Infinity` or bound the row range to the actual number of rows. Check existing tests for similar edge cases.