mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
fix: mobile autocomplete modals (#6741)
When filtering for accounts in e.g. the net worth graph the modal closes the filter the tooltip so it's impossible to add e.g. accounts to the filter.
This commit is contained in:
@@ -131,9 +131,23 @@ export function FilterExpression<T extends RuleConditionEntity>({
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
element instanceof HTMLElement &&
|
||||
(element.closest('[data-testid="account-autocomplete-modal"]') ||
|
||||
element.closest('[data-testid="payee-autocomplete-modal"]') ||
|
||||
element.closest('[data-testid="category-autocomplete-modal"]'))
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}}
|
||||
style={{ width: 275, padding: 15, color: theme.menuItemText }}
|
||||
style={{
|
||||
width: 275,
|
||||
padding: 15,
|
||||
color: theme.menuItemText,
|
||||
zIndex: '2500 !important',
|
||||
}}
|
||||
data-testid="filters-menu-tooltip"
|
||||
>
|
||||
<FilterEditor
|
||||
|
||||
@@ -555,9 +555,23 @@ export function FilterButton<T extends RuleConditionEntity>({
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
element instanceof HTMLElement &&
|
||||
(element.closest('[data-testid="account-autocomplete-modal"]') ||
|
||||
element.closest('[data-testid="payee-autocomplete-modal"]') ||
|
||||
element.closest('[data-testid="category-autocomplete-modal"]'))
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}}
|
||||
style={{ width: 275, padding: 15, color: theme.menuItemText }}
|
||||
style={{
|
||||
width: 275,
|
||||
padding: 15,
|
||||
color: theme.menuItemText,
|
||||
zIndex: '2500 !important',
|
||||
}}
|
||||
data-testid="filters-menu-tooltip"
|
||||
>
|
||||
{state.field && (
|
||||
|
||||
Reference in New Issue
Block a user