[Bug]: Breadcrumb overflow index larger than items length errors out
Library
React / v8 (@fluentui/react)
System Info
System:
OS: Windows 10 10.0.22000
CPU: (12) x64 Intel(R) Xeon(R) W-2235 CPU @ 3.80GHz
Memory: 46.58 GB / 63.59 GB
Browsers:
Edge: Spartan (44.22000.120.0), Chromium (102.0.1245.44)
Internet Explorer: 11.0.22000.120
Are you reporting Accessibility issue?
No response
Reproduction
https://codepen.io/refortie/pen/WNMBqdL
Bug Description
Actual Behavior
When using a breadcrumb with items array length smaller or equal to the overflow index you get an error: Breadcrumb: overflowIndex out of range
Expected Behavior
The length of the breadcrumb shouldn't be affected by the overflow index.
Logs
No response
Requested priority
Normal
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] The provided reproduction is a minimal reproducible example of the bug.
@refortie- Thank you for filing this item with us. I'll add this to our contributors queue as it’s lower on our priority list and we’re likely not going to get to it for a while as we’re currently focused on larger coherence work items and enhancements to our performance. In the meantime, if you want to contribute towards this request, please share your PR and our dev team will review it.
Hi @refortie. This is by design, the error is thrown out on purpose so you only use overflowIndex within the bounds of the items array you pass. I'll be resolving this issue as such. Let me know if there is anything else I can help you with.
Because this issue is marked as by design and has not had activity for over 3 days, we're automatically closing it for house-keeping purposes.