Skip to content

Commit

Permalink
Fix typo in README.md and remove unnecessary line in focusgroup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed Feb 22, 2024
1 parent cad38ec commit 1ae7f01
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<div u1-focusgroup="wrap remember">
Expand Down
1 change: 0 additions & 1 deletion focusgroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1ae7f01

Please sign in to comment.