Skip to content

Commit

Permalink
[Glitch] Fixes dropdown target without a buttonRef (edit history)
Browse files Browse the repository at this point in the history
Port 7b1d390 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
renchap authored and ClearlyClaire committed Jan 13, 2024
1 parent 6d0149b commit e9ad621
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class Dropdown extends PureComponent {
};

findTarget = () => {
return this.target?.buttonRef?.current;
return this.target?.buttonRef?.current ?? this.target;
};

componentWillUnmount = () => {
Expand Down

0 comments on commit e9ad621

Please sign in to comment.