Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add changeset
Browse files Browse the repository at this point in the history
Niznikr committed Oct 1, 2024
1 parent bc1ae17 commit d15a69f
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .changeset/selfish-ravens-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
"@launchpad-ui/inline-edit": patch
"@launchpad-ui/components": patch
"@launchpad-ui/data-table": patch
"@launchpad-ui/focus-trap": patch
"@launchpad-ui/navigation": patch
"@launchpad-ui/pagination": patch
"@launchpad-ui/clipboard": patch
"@launchpad-ui/dropdown": patch
"@launchpad-ui/tab-list": patch
"@launchpad-ui/drawer": patch
"@launchpad-ui/filter": patch
"@launchpad-ui/select": patch
"@launchpad-ui/toggle": patch
"@launchpad-ui/alert": patch
"@launchpad-ui/modal": patch
"@launchpad-ui/form": patch
"@launchpad-ui/menu": patch
"@launchpad-ui/vars": patch
"@launchpad-ui/tag": patch
"@launchpad-ui/core": patch
---

Update dependencies
2 changes: 1 addition & 1 deletion packages/select/src/SingleSelect/useSingleSelectState.ts
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ const useSingleSelectState = <T extends object>(
const commitSelection = () => {
// If multiple things are controlled, call onSelectionChange
if (props.selectedKey !== undefined && props.filterValue !== undefined) {
if (props.onSelectionChange) props.onSelectionChange(selectedKey);
if (props.onSelectionChange && selectedKey !== null) props.onSelectionChange(selectedKey);

// Stop menu from reopening from useEffect
// const itemText = collection.getItem(selectedKey)?.textValue ?? '';

0 comments on commit d15a69f

Please sign in to comment.