Skip to content

Commit ffb7284

Browse files
Fix invalid code snippet example in Select documentation (#7105)
Co-authored-by: svc-changelog <[email protected]>
1 parent 964ac3c commit ffb7284

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type: fix
2+
fix:
3+
description: Fix invalid code snippet example in Select documentation
4+
links:
5+
- https://github.com/palantir/blueprint/pull/7105

packages/select/src/components/select/select-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const FilmSelect: React.FC = () => {
7171
noResults={<MenuItem disabled={true} text="No results." roleStructure="listoption" />}
7272
onItemSelect={setSelectedFilm}
7373
>
74-
<Button text={selectedFilm?.title} rightIcon="double-caret-vertical" placeholder="Select a film" />
74+
<Button text={selectedFilm?.title ?? "Select a film"} rightIcon="double-caret-vertical" />
7575
</Select>
7676
);
7777
};

0 commit comments

Comments
 (0)