-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Breadcumbs Only Work on N2 Level #6497
Comments
Hello, @aress31, Thanks for the detailed explanation! Yes, It would be great! Do you want to work on this? Source code: refine/packages/mui/src/components/breadcrumb/index.tsx Lines 44 to 45 in 9ecbd45
|
Sure |
We discussed with the core team and decided that the implementation would be better as follows:
/**
* Minimum number of breadcrumb items required for rendering. Component won't render if items * are less than this number.
*/
minItems?: number;
I’d also like to point out that You can find usage examples in the documentation here. If I missed anything, please feel free to update it 🚀 |
@alicanerdurmaz, I’ve made further updates to the PR, and it’s now ready for your review. However, I have a few points:
|
Describe the bug
It appears that the breadcrumb component doesn't display anything when the array contains only a single element. This undermines the consistency of the layout, as I would like to maintain a consistent breadcrumb style across all pages, even when there is only one breadcrumb item. Could you kindly add a property to define the minimum number of elements required for the breadcrumb to be displayed?
Steps To Reproduce
Expected behavior
See above.
Packages
Latest.
Additional Context
No response
The text was updated successfully, but these errors were encountered: