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
I have read the console error message carefully (if applicable).
Description
When using a navbar dropdown item with a "to" tag it cant be clicked on mobile
If you have a navbar item as below
{
type: 'dropdown',
label: 'Extraction',
position: 'left',
to: '/extraction/intro',
items: [
{
label: 'MTP',
to: '/extraction/mtp',
},
{
label: 'ADB',
to: '/extraction/adb/adb_extraction',
},
{
label: 'Cloud',
to: '/extraction/cloud',
},
],
},
If you open it on desktop the "Extraction" value shows the others when hovered and can be clicked to go to "/extraction/intro" but on mobile when clicked it opens the dropdown and clicking again closes it, its impossible to go to "/extraction/intro" on a mobile device using the navbar (unless you hold on "Extraction" and copy/follow the link)
this repo contains the problem. If you want a live example you can find it here
Reproducible demo
No response
Steps to reproduce
Add dropdown navbar item with "to" value
Open page on mobile
Cant click on it to go to "to" value
Expected behavior
Desktop behaviour unchanged
On mobile clicking it once opens the menu, clicking again goes to the link, to close the menu click on the arrow
Actual behavior
You cant navigate to the url
Your environment
Public source code:
Public site URL:
Docusaurus version used:
Environment name and version (e.g. Chrome 89, Node.js 16.4):
Operating system and version (e.g. Ubuntu 20.04.2 LTS):
Self-service
I'd be willing to fix this bug myself.
The text was updated successfully, but these errors were encountered:
Note: if we make that mobile dropdown item clickable, then this means clicking on the link would navigate to the page (as you expect) but it also closes the mobile drawer.
What I mean is that now, we don't have a way to collapse/expand the mobile dropdown anymore 😅
Does it looks good to you if we split the mobile dropdown parent into 2 clickable areas?
Clicking the label would navigate to the page
Clicking the arrow would expand the dropdown menu without navigating
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
When using a navbar dropdown item with a "to" tag it cant be clicked on mobile
If you have a navbar item as below
If you open it on desktop the "Extraction" value shows the others when hovered and can be clicked to go to "/extraction/intro" but on mobile when clicked it opens the dropdown and clicking again closes it, its impossible to go to "/extraction/intro" on a mobile device using the navbar (unless you hold on "Extraction" and copy/follow the link)
this repo contains the problem. If you want a live example you can find it here
Reproducible demo
No response
Steps to reproduce
Expected behavior
Desktop behaviour unchanged
On mobile clicking it once opens the menu, clicking again goes to the link, to close the menu click on the arrow
Actual behavior
You cant navigate to the url
Your environment
Self-service
The text was updated successfully, but these errors were encountered: