Skip to content

Commit 927c518

Browse files
renchapvmstan
authored andcommittedJan 5, 2024
Fixes dropdown target without a buttonRef (edit history) (mastodon#28427)
1 parent 7c747b3 commit 927c518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎app/javascript/mastodon/components/dropdown_menu.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class Dropdown extends PureComponent {
257257
};
258258

259259
findTarget = () => {
260-
return this.target?.buttonRef?.current;
260+
return this.target?.buttonRef?.current ?? this.target;
261261
};
262262

263263
componentWillUnmount = () => {

0 commit comments

Comments
 (0)
Please sign in to comment.