mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-19 22:22:53 -05:00
[Glitch] Fixes dropdown target without a buttonRef
(edit history)
Port 7b1d3907340d40bb60098b01bfb7b2e34ba9e7f1 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
a8c59c2506
commit
dd56900fac
@ -257,7 +257,7 @@ class Dropdown extends PureComponent {
|
||||
};
|
||||
|
||||
findTarget = () => {
|
||||
return this.target?.buttonRef?.current;
|
||||
return this.target?.buttonRef?.current ?? this.target;
|
||||
};
|
||||
|
||||
componentWillUnmount = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user