Skip to content

Commit

Permalink
chore(multiselect): added code comment
Browse files Browse the repository at this point in the history
Added code comment for better code readability.
  • Loading branch information
alphaxek committed Mar 9, 2024
1 parent 2894aec commit 89a46b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-ghosts-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/use-aria-multiselect": major
---

Added code comment
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export function useMultiSelectState<T extends {}>(props: MultiSelectProps<T>): M
}
},
toggle(focusStrategy) {
// Don't toggle if the collection is empty.
if (listState.collection.size !== 0) {
triggerState.toggle(focusStrategy);
}
Expand Down

0 comments on commit 89a46b5

Please sign in to comment.