client/src/components/Note.js
changeset 143 cfcbf4bc66f1
parent 138 a1fb2ced3049
child 161 a642639dbc07
--- a/client/src/components/Note.js	Wed Jul 18 17:32:09 2018 +0200
+++ b/client/src/components/Note.js	Tue Aug 14 20:34:50 2018 +0200
@@ -1,6 +1,5 @@
 import React, { Component } from 'react';
 import PropTypes from 'prop-types';
-import { FormControl } from 'react-bootstrap';
 import { formatTimestamp } from '../utils';
 import SlateEditor from './SlateEditor';
 
@@ -60,12 +59,13 @@
     if (this.props.isEditing) {
       return (
         <div className="note-margin-comment">
-          <FormControl
+          <input type="text" className="form-control"
             name="margin"
             componentClass="textarea"
             placeholder="Enter a margin comment for your note"
             defaultValue={ this.props.note.marginComment }
-            inputRef={ ref => { this.marginComment = ref; } } />
+            // inputRef={ ref => { this.marginComment = ref; } } />
+            ref={(marginComment) => { this.marginComment = marginComment; }} />
         </div>
       )
     }