|
@@ -75,15 +75,15 @@ export class MetadataComponent extends React.Component<IMetadataComponentProps,
|
|
|
<div id="metadata-editor" className={(this.props.globalState.language === "JS" ? "background-js" : "background-ts")}>
|
|
|
<label htmlFor="title">TITLE</label>
|
|
|
<div className="separator"></div>
|
|
|
- <input type="text" maxLength={120} id="title" className="save-form-title" ref={this._titleRef} value={this.props.globalState.currentSnippetTitle}/>
|
|
|
+ <input type="text" maxLength={120} id="title" className="save-form-title" ref={this._titleRef} defaultValue={this.props.globalState.currentSnippetTitle}/>
|
|
|
|
|
|
<label htmlFor="description">DESCRIPTION</label>
|
|
|
<div className="separator"></div>
|
|
|
- <textarea id="description" rows={4} cols={10} ref={this._descriptionRef} value={this.props.globalState.currentSnippetDescription}></textarea>
|
|
|
+ <textarea id="description" rows={4} cols={10} ref={this._descriptionRef} defaultValue={this.props.globalState.currentSnippetDescription}></textarea>
|
|
|
|
|
|
<label htmlFor="tags">TAGS (separated by comma)</label>
|
|
|
<div className="separator"></div>
|
|
|
- <textarea id="tags" rows={4} cols={10} ref={this._tagsRef} value={this.props.globalState.currentSnippetTags}></textarea>
|
|
|
+ <textarea id="tags" rows={4} cols={10} ref={this._tagsRef} defaultValue={this.props.globalState.currentSnippetTags}></textarea>
|
|
|
|
|
|
<div className="editor-buttons" id="buttons">
|
|
|
<div id="ok" onClick={() => this.onOk()}>OK</div>
|