Fix: inline links selecting radio button (#9543)
* fix: inline link selecting radio button
This commit is contained in:
parent
7c33fc6cf6
commit
212233cb0b
2 changed files with 62 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue