fix: Drag-n-drop

This commit is contained in:
Tom Moor
2022-10-19 08:19:53 -04:00
parent 167ade0d59
commit a814543aaf

View File

@@ -153,19 +153,14 @@ const NavLink = ({
<Link
key={isActive ? "active" : "inactive"}
ref={linkRef}
onMouseDown={handleClick}
//onMouseDown={handleClick}
onKeyDown={(event) => {
if (["Enter", " "].includes(event.key)) {
navigateTo();
event.currentTarget?.blur();
}
}}
onClick={(event) => {
if (shouldFastClick(event)) {
event.stopPropagation();
event.preventDefault();
}
}}
onClick={handleClick}
aria-current={(isActive && ariaCurrent) || undefined}
className={className}
style={style}