mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-30 12:20:35 +00:00
Fixes dropdown target without a buttonRef
(edit history) (#28427)
This commit is contained in:
parent
fa987db738
commit
7b1d390734
|
@ -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