mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
fix(link): listen on the list and fix timeout
This commit is contained in:
@@ -167,6 +167,7 @@ const LinkList: React.FC<LinkListProps> = ({ activeItemIndex, setActiveItemIndex
|
||||
return newIndex
|
||||
})
|
||||
} else if (e.key === "Enter" && !disableEnterKey) {
|
||||
console.log("Enter key pressed", { activeItemIndex, sortedLinks, disableEnterKey })
|
||||
e.preventDefault()
|
||||
if (activeItemIndex !== null) {
|
||||
const activeLink = sortedLinks[activeItemIndex]
|
||||
|
||||
Reference in New Issue
Block a user