Fix fallback auth link to act and look like a link

This commit is contained in:
Travis Ralston 2020-03-27 13:44:32 -06:00
parent 7bdd22ae03
commit 984f9ea4aa

View file

@ -598,7 +598,10 @@ export const FallbackAuthEntry = createReactClass({
} }
}, },
_onShowFallbackClick: function() { _onShowFallbackClick: function(e) {
e.preventDefault();
e.stopPropagation();
const url = this.props.matrixClient.getFallbackAuthUrl( const url = this.props.matrixClient.getFallbackAuthUrl(
this.props.loginType, this.props.loginType,
this.props.authSessionId, this.props.authSessionId,
@ -627,7 +630,7 @@ export const FallbackAuthEntry = createReactClass({
} }
return ( return (
<div> <div>
<a ref={this._fallbackButton} onClick={this._onShowFallbackClick}>{ _t("Start authentication") }</a> <a href="" ref={this._fallbackButton} onClick={this._onShowFallbackClick}>{ _t("Start authentication") }</a>
{errorSection} {errorSection}
</div> </div>
); );