Fixes dropdown target without a buttonRef (edit history) (#28427)

This commit is contained in:
Renaud Chaput 2023-12-19 11:47:53 +01:00 committed by GitHub
parent fa987db738
commit 7b1d390734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,7 +257,7 @@ class Dropdown extends PureComponent {
}; };
findTarget = () => { findTarget = () => {
return this.target?.buttonRef?.current; return this.target?.buttonRef?.current ?? this.target;
}; };
componentWillUnmount = () => { componentWillUnmount = () => {