mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 22:07:40 +08:00
handle no-interaction input the correct way
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
.profileEmail {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
pointer-events: none;
|
||||
font-size: 16px;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
|
||||
@@ -46,7 +46,7 @@ class UserDetail extends React.Component {
|
||||
<Drawer handleClickOutside={hideUserDetail}>
|
||||
<h3>{user.username}</h3>
|
||||
<Button className={styles.copyButton} onClick={this.copyPermalink}>Copy</Button>
|
||||
{profile && <input className={styles.profileEmail} type="text" ref={(ref) => this.profile = ref} value={profile} />}
|
||||
{profile && <input className={styles.profileEmail} readOnly type="text" ref={(ref) => this.profile = ref} value={profile} />}
|
||||
<Slot fill="userProfile" user={user} />
|
||||
<p className={styles.memberSince}><strong>Member since</strong> {new Date(user.created_at).toLocaleString()}</p>
|
||||
<hr/>
|
||||
|
||||
Reference in New Issue
Block a user