[Glitch] Fixes dropdown target without a `buttonRef` (edit history)

Port 7b1d390734 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/2568/head
Renaud Chaput 2023-12-19 11:47:53 +01:00 committed by Claire
parent a8c59c2506
commit dd56900fac
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ class Dropdown extends PureComponent {
}; };
findTarget = () => { findTarget = () => {
return this.target?.buttonRef?.current; return this.target?.buttonRef?.current ?? this.target;
}; };
componentWillUnmount = () => { componentWillUnmount = () => {