mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 23:28:08 +01:00
[Glitch] Fixes dropdown target without a buttonRef
(edit history)
Port 7b1d390734
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
a8c59c2506
commit
dd56900fac
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ class Dropdown extends PureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
findTarget = () => {
|
findTarget = () => {
|
||||||
return this.target?.buttonRef?.current;
|
return this.target?.buttonRef?.current ?? this.target;
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillUnmount = () => {
|
componentWillUnmount = () => {
|
||||||
|
|
Loading…
Reference in a new issue