We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bbc5d8 commit dcb0f74Copy full SHA for dcb0f74
src/components/Memo.js
@@ -45,6 +45,11 @@ class Memo extends React.Component {
45
$('#dropdown-button-'+this.props.data._id).dropdown({
46
belowOrigin: true // Displays dropdown below the button
47
});
48
+
49
+ if(this.state.editMode) {
50
+ // Trigger key up event to the edit input so that it auto-resizes (Materializecss Feature)
51
+ $(this.input).keyup();
52
+ }
53
}
54
55
toggleEdit() {
@@ -132,6 +137,7 @@ class Memo extends React.Component {
132
137
<div className="card">
133
138
<div className="card-content">
134
139
<textarea
140
+ ref={ ref => { this.input = ref; } }
135
141
className="materialize-textarea"
136
142
value={this.state.value}
143
onChange={this.handleChange}></textarea>
0 commit comments