Skip to content

Commit

Permalink
fix: bad combobox label override logic
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemcd committed Feb 4, 2025
1 parent d334dc8 commit c605b62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/afraid-carrots-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@telegraph/combobox": patch
---

fix bad label override logic
2 changes: 1 addition & 1 deletion packages/combobox/src/Combobox/Combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ const TriggerValue = () => {

return (
<TelegraphButton.Text color={!context.value ? "gray" : "default"}>
{legacyLabelOverride ?? label}
{legacyLabelOverride ? legacyLabelOverride : label}
</TelegraphButton.Text>
);
}
Expand Down

0 comments on commit c605b62

Please sign in to comment.