diff --git a/README.md b/README.md index 1b299a7..9b5ddd4 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ See also: https://open-ui.org/components/focusgroup.explainer/ https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Focusgroup/explainer.md -## Ussage +## Usage ```html
diff --git a/focusgroup.js b/focusgroup.js index f4b4962..e77df03 100644 --- a/focusgroup.js +++ b/focusgroup.js @@ -46,7 +46,6 @@ addEventListener('keydown', e => { let next = items[index + direction]; if (!next && options.wrap) next = direction === 1 ? items.at(0) : items.at(-1); - if (!next) return; next.focus();