Fix: inline links selecting radio button (#9543)

* fix: inline link selecting radio button
This commit is contained in:
Hanadi 2022-11-14 10:11:37 +01:00 committed by GitHub
parent 7c33fc6cf6
commit 212233cb0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 62 additions and 2 deletions

View file

@ -19,7 +19,7 @@ import { logger } from "matrix-js-sdk/src/logger";
import { _t } from "../../../../../languageHandler";
import { MatrixClientPeg } from "../../../../../MatrixClientPeg";
import AccessibleButton from "../../../elements/AccessibleButton";
import AccessibleButton, { ButtonEvent } from "../../../elements/AccessibleButton";
import Notifier from "../../../../../Notifier";
import SettingsStore from '../../../../../settings/SettingsStore';
import { SettingLevel } from "../../../../../settings/SettingLevel";
@ -163,7 +163,9 @@ export default class NotificationsSettingsTab extends React.Component<IProps, IS
this.forceUpdate();
};
private onOpenSettingsClick = () => {
private onOpenSettingsClick = (event: ButtonEvent) => {
// avoid selecting the radio button
event.preventDefault();
this.props.closeSettingsFn();
defaultDispatcher.dispatch({
action: Action.ViewUserSettings,