Fixes dropdown target without a buttonRef (edit history) (#28427)
This commit is contained in:
@@ -257,7 +257,7 @@ class Dropdown extends PureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
findTarget = () => {
|
findTarget = () => {
|
||||||
return this.target?.buttonRef?.current;
|
return this.target?.buttonRef?.current ?? this.target;
|
||||||
};
|
};
|
||||||
|
|
||||||
componentWillUnmount = () => {
|
componentWillUnmount = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user