Add stopPropagation in "x" button

merge-requests/3337/head
danidfra 2025-03-10 14:37:05 -03:00
rodzic 5a2fb4ed23
commit 574ffccf60
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -451,7 +451,9 @@ const generateFilter = (dispatch: AppDispatch, intl: IntlShape, { name, status }
} }
} }
const handleChangeFilters = () => { const handleChangeFilters = (e: React.MouseEvent<HTMLButtonElement>) => {
e.stopPropagation();
if (['nostr', 'bluesky', 'fediverse'].includes(nameLowCase)) { if (['nostr', 'bluesky', 'fediverse'].includes(nameLowCase)) {
dispatch(selectProtocol(nameLowCase)); dispatch(selectProtocol(nameLowCase));
} else if (Object.keys(languages).some((lang) => lang.toLowerCase() === nameLowCase)) { } else if (Object.keys(languages).some((lang) => lang.toLowerCase() === nameLowCase)) {