Skip to content

Commit

Permalink
Update packages/x-tree-view/src/internals/plugins/useTreeViewKeyboard…
Browse files Browse the repository at this point in the history
…Navigation/useTreeViewKeyboardNavigation.ts

Co-authored-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com>
  • Loading branch information
flaviendelangle and michelengelen committed Apr 18, 2024
1 parent 9daff8b commit f4261c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const useTreeViewKeyboardNavigation: TreeViewPlugin<
const getNextItem = (itemIdToCheck: string) => {
const nextItemId = getNextNavigableItem(instance, itemIdToCheck);
// We reached the end of the tree, check from the beginning
if (nextItemId == null) {
if (nextItemId === null) {
return getFirstNavigableItem(instance);
}

Expand Down

0 comments on commit f4261c3

Please sign in to comment.