mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
fix(v2): make dropdown button clickable with mouse (#3602)
This commit is contained in:
parent
7f6fba9d9e
commit
6cfadb89eb
|
|
@ -112,7 +112,7 @@ function NavItemDesktop({
|
|||
<NavLink
|
||||
className={navLinkClassNames(className)}
|
||||
{...props}
|
||||
onClick={(e) => e.preventDefault()}
|
||||
onClick={props.to ? undefined : (e) => e.preventDefault()}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter') {
|
||||
e.preventDefault();
|
||||
|
|
|
|||
Loading…
Reference in New Issue