Skip to content

Commit

Permalink
add labelAsText
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielle Whyte committed Dec 10, 2024
1 parent 245d5db commit 44b5af0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/perseus/src/widgets/dropdown/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class Dropdown extends React.Component<Props> implements Widget {
inline
/>
}
labelAsText={this.props.placeholder}
/>,
...this.props.choices.map((choice, i) => (
<OptionItem
Expand All @@ -94,6 +95,7 @@ class Dropdown extends React.Component<Props> implements Widget {
inline
/>
}
labelAsText={choice}
/>
)),
];
Expand Down

0 comments on commit 44b5af0

Please sign in to comment.