Skip to content
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

firefox browser getting order error not in ChromeBrowser #30

Open
sridharchary opened this issue Jan 31, 2019 · 2 comments
Open

firefox browser getting order error not in ChromeBrowser #30

sridharchary opened this issue Jan 31, 2019 · 2 comments

Comments

@sridharchary
Copy link

sridharchary commented Jan 31, 2019

I am adding one attribute(name as:depth) to BreadcrumbsItem and changing order of BreadcrumbsItems. its perfectly working in chrome after reloading successfully. But while testing in firefox it giving rendomly displaying.

BreadcrumbsItem to="/" depth="1" depth="2" depth="3"

to render in order i wrote code in Breadcrumbs
<Breadcrumbs
separator={ / }
item={Link}
finalItem={'b'}
compare={function(a,b){
if(parseInt(a.depth)< parseInt(b.depth)){
return -1;
}
return 0;
}}
/>

@oklas
Copy link
Owner

oklas commented Feb 1, 2019

Hi, please refer to js/es Array::sort() specification about sorting comparision function.

@oklas
Copy link
Owner

oklas commented Feb 1, 2019

Let me know if problem still exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants