fix: Sub-Categpry Routing in Item Group Page Listing pills

- Use absolute route even 3-4 sub-category levels down
- Remove scroll from category pills due to accessibility issues
- Arrange sub-category pills alphabetically
This commit is contained in:
marination
2022-03-15 16:27:52 +05:30
parent b03b9ac99f
commit 8264d6b0bc
3 changed files with 6 additions and 8 deletions

View File

@@ -495,7 +495,7 @@ erpnext.ProductView = class {
categories.forEach(category => {
sub_group_html += `
<a href="${ category.route || '#' }" style="text-decoration: none;">
<a href="/${ category.route || '#' }" style="text-decoration: none;">
<div class="category-pill">
${ category.name }
</div>