fix: prevent search menu from opening when dialog is open (#9279)
This commit is contained in:
@@ -297,6 +297,10 @@ export const SearchMenu = () => {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
|
||||
if (app.state.openDialog) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!searchInputRef.current?.matches(":focus")) {
|
||||
if (app.state.openDialog) {
|
||||
setAppState({
|
||||
|
||||
Reference in New Issue
Block a user