You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note the new index page for tutorial-extras and the new link element in the tutorial-basics section sending you to the tutorial-extras/index page.
When clicking on the link to tutorial-extras the navigation sends you to the correct index page but the DocCardList is populated by elements from the tutorial-basics category and not the tutorial-extras category. This happens even when clicking directly on the Tutorial - Extras sidebar element.
There is a separate, related issue where the link element in the sidebar is prioritized in terms of focus, but I'll make a new issue for that.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I have run into a bug where the DocCardList element renders the wrong items when linking to an category index with a DocCardList element.
Using the tutorial example from https://docusaurus.new/codesandbox, I create a new sidebar:
New index page for tutorials-extras looks like this (backticks changed to single-quotes so formatting works here):
Note the new index page for tutorial-extras and the new link element in the tutorial-basics section sending you to the tutorial-extras/index page.
When clicking on the link to tutorial-extras the navigation sends you to the correct index page but the DocCardList is populated by elements from the tutorial-basics category and not the tutorial-extras category. This happens even when clicking directly on the Tutorial - Extras sidebar element.
There is a separate, related issue where the link element in the sidebar is prioritized in terms of focus, but I'll make a new issue for that.
Reproducible demo
https://codesandbox.io/p/devbox/brave-allen-d39ddg?workspaceId=971447fd-9df5-4a54-a72d-33087efcd2fa
Steps to reproduce
tutorials - extras
in sidebar. See that the populated list of elements is incorrector
tutorials - basics
in the sidebar, then click onTutorial Extras →
sub-item. See that the populated list of elements is incorrect.Expected behavior
Cards should populate from the category where the
doc
element exists and not from thelink
element.Actual behavior
Cards populate from the
link
element. Or maybe just from the first instance where the link occurs?Your environment
occurs in sandbox and also in my local environment.
Self-service
The text was updated successfully, but these errors were encountered: