Skip to content
Permalink
Browse files
MEMO edit height bug fix
  • Loading branch information
velopert committed Aug 5, 2016
1 parent 3bbc5d8 commit dcb0f74bb76e37912b0482251287aa9affcb3b10
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/components/Memo.js
@@ -45,6 +45,11 @@ class Memo extends React.Component {
$('#dropdown-button-'+this.props.data._id).dropdown({
belowOrigin: true // Displays dropdown below the button
});

if(this.state.editMode) {
// Trigger key up event to the edit input so that it auto-resizes (Materializecss Feature)
$(this.input).keyup();
}
}

toggleEdit() {
@@ -132,6 +137,7 @@ class Memo extends React.Component {
<div className="card">
<div className="card-content">
<textarea
ref={ ref => { this.input = ref; } }
className="materialize-textarea"
value={this.state.value}
onChange={this.handleChange}></textarea>

0 comments on commit dcb0f74

Please sign in to comment.