@@ -617,7 +617,7 @@ class GitalkComponent extends Component {
617
617
< div className = "gt-header" key = "header" >
618
618
{ user ?
619
619
< Avatar className = "gt-header-avatar" src = { user . avatar_url } alt = { user . login } onError = { this . handleImageErrored . bind ( this ) } /> :
620
- < a className = "gt-avatar-github" onMouseDown = { this . handleLogin } >
620
+ < a className = "gt-avatar-github" onClick = { this . handleLogin } >
621
621
< Svg className = "gt-ico-github" name = "github" />
622
622
</ a >
623
623
}
@@ -643,18 +643,18 @@ class GitalkComponent extends Component {
643
643
{ user && < Button
644
644
getRef = { this . getRef }
645
645
className = "gt-btn-public"
646
- onMouseDown = { this . handleCommentCreate }
646
+ onClick = { this . handleCommentCreate }
647
647
text = { this . i18n . t ( 'comment' ) }
648
648
isLoading = { isCreating }
649
649
/> }
650
650
651
651
< Button
652
652
className = "gt-btn-preview"
653
- onMouseDown = { this . handleCommentPreview }
653
+ onClick = { this . handleCommentPreview }
654
654
text = { isPreview ? this . i18n . t ( 'edit' ) : this . i18n . t ( 'preview' ) }
655
655
// isLoading={isPreviewing}
656
656
/>
657
- { ! user && < Button className = "gt-btn-login" onMouseDown = { this . handleLogin } text = { this . i18n . t ( 'login-with-github' ) } /> }
657
+ { ! user && < Button className = "gt-btn-login" onClick = { this . handleLogin } text = { this . i18n . t ( 'login-with-github' ) } /> }
658
658
</ div >
659
659
</ div >
660
660
</ div >
@@ -722,7 +722,7 @@ class GitalkComponent extends Component {
722
722
{ user ? < Action className = { `gt-action-sortdesc${ isDesc ? ' is--active' : '' } ` } onClick = { this . handleSort ( 'last' ) } text = { this . i18n . t ( 'sort-desc' ) } /> : null }
723
723
{ user ?
724
724
< Action className = "gt-action-logout" onClick = { this . handleLogout } text = { this . i18n . t ( 'logout' ) } /> :
725
- < a className = "gt-action gt-action-login" onMouseDown = { this . handleLogin } > { this . i18n . t ( 'login-with-github' ) } </ a >
725
+ < a className = "gt-action gt-action-login" onClick = { this . handleLogin } > { this . i18n . t ( 'login-with-github' ) } </ a >
726
726
}
727
727
< div className = "gt-copyright" >
728
728
< a className = "gt-link gt-link-project" href = "https://github.com/gitalk/gitalk" target = "_blank" > Gitalk</ a >
0 commit comments