mirror of https://github.com/tootsuite/mastodon
Fixes dropdown target without a `buttonRef` (edit history) (#28427)
parent
fa987db738
commit
7b1d390734
|
@ -257,7 +257,7 @@ class Dropdown extends PureComponent {
|
|||
};
|
||||
|
||||
findTarget = () => {
|
||||
return this.target?.buttonRef?.current;
|
||||
return this.target?.buttonRef?.current ?? this.target;
|
||||
};
|
||||
|
||||
componentWillUnmount = () => {
|
||||
|
|
Loading…
Reference in New Issue