handle no-interaction input the correct way

This commit is contained in:
Riley Davis
2017-05-18 13:51:48 -06:00
parent 5a272413e6
commit c772cffc92
2 changed files with 1 additions and 2 deletions
@@ -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/>