Skip to content

Commit

Permalink
Merge pull request #4937 from keystonejs/bugfix/url-field-noedit-value
Browse files Browse the repository at this point in the history
fix value for noEdit InputForm in UrlField
  • Loading branch information
JedWatson authored Jul 15, 2019
2 parents 0535263 + d7f1e46 commit 2aeee70
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions fields/types/url/UrlField.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ module.exports = Field.create({
const { value } = this.props;
return (
<div>
<FormInput
noedit
onClick={value && this.openValue}
value={value}
/>
<FormInput noedit onClick={value && this.openValue}>
{value}
</FormInput>
{ this.renderThumb() }
</div>
);
Expand Down

0 comments on commit 2aeee70

Please sign in to comment.