Skip to content
Snippets Groups Projects
Commit 5b2c0d0c authored by Matt Evanoff's avatar Matt Evanoff
Browse files

Setting value of image

parent 72fc5a49
No related merge requests found
...@@ -170,9 +170,7 @@ class Settings extends React.Component { ...@@ -170,9 +170,7 @@ class Settings extends React.Component {
const {url} = progress const {url} = progress
const image_md = `${url}` const image_md = `${url}`
const {body} = this.state const {body} = this.state
profile_image.props.onChange( this.state.profile_image.props.value = image_md
image_md
)
} else { } else {
this.setState({ progress }) this.setState({ progress })
} }
...@@ -235,7 +233,6 @@ class Settings extends React.Component { ...@@ -235,7 +233,6 @@ class Settings extends React.Component {
ref={(node) => { this.dropzone = node; }}> ref={(node) => { this.dropzone = node; }}>
<input type="url" ref="profile_image" {...profile_image.props} autoComplete="off" /> <input type="url" ref="profile_image" {...profile_image.props} autoComplete="off" />
<span> <span>
<p className="drag-and-drop"> <p className="drag-and-drop">
Insert images by dragging &amp; dropping,&nbsp; Insert images by dragging &amp; dropping,&nbsp;
{noClipboardData ? '' : 'pasting from the clipboard, '} {noClipboardData ? '' : 'pasting from the clipboard, '}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment