Skip to content

Commit

Permalink
Fix broken dropdowns in tgui chat (#9935)
Browse files Browse the repository at this point in the history
* Fix broken dropdowns in tgui chat

* Remove debugging code
  • Loading branch information
Absolucy authored Oct 2, 2023
1 parent 9facd56 commit ed8c18d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tgui/packages/tgui/components/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@ export class Dropdown extends Component<DropdownProps, DropdownState> {
open: false,
};

constructor() {
super();
constructor(props) {
super(props);

this.state = {
selected: props.selected,
open: props.open,
};
this.handleClick = () => {
if (this.state.open) {
this.setOpen(false);
Expand Down

0 comments on commit ed8c18d

Please sign in to comment.