Skip to content

Commit

Permalink
[MIRROR] Fixes dropdowns not rendering the selection's displayText po…
Browse files Browse the repository at this point in the history
…st-selection [MDB IGNORE] (#1229)

* Fixes dropdowns not rendering the selection's displayText post-selection (#80464)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Bloop <[email protected]>
  • Loading branch information
3 people authored Dec 21, 2023
1 parent 725606c commit a424052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgui/packages/tgui/components/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export class Dropdown extends Component<Props, State> {
overflow: clipSelectedText ? 'hidden' : 'visible',
}}
>
{this.state.selected || displayText}
{displayText || this.state.selected}
</span>
{nochevron || (
<span className="Dropdown__arrow-button">
Expand Down

0 comments on commit a424052

Please sign in to comment.