diff -r 56850f5c73f6 -r cfcbf4bc66f1 client/src/components/Note.js --- 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 (
- { this.marginComment = ref; } } /> + // inputRef={ ref => { this.marginComment = ref; } } /> + ref={(marginComment) => { this.marginComment = marginComment; }} />
) }