@brett_lamy/docstream 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/docs/PageActions.tsx +1 -1
package/package.json
CHANGED
package/src/docs/PageActions.tsx
CHANGED
|
@@ -122,7 +122,7 @@ export function DocPageActions(props: DocPageActionsProps) {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
const onMenuKey = (event: KeyboardEvent<HTMLDivElement>) => {
|
|
125
|
-
const entries =
|
|
125
|
+
const entries = Array.from(event.currentTarget.querySelectorAll<HTMLElement>("[role=menuitem]"))
|
|
126
126
|
const index = entries.indexOf(document.activeElement as HTMLElement)
|
|
127
127
|
let next = -1
|
|
128
128
|
if (event.key === "ArrowDown") next = (index + 1) % entries.length
|