* Add fallback url to fuse devserver(closes #945)
* Only focus on reply commentform textareas. Fixes #944
Co-authored-by: Justin Hernandez <jmarthernandez@gmail.com>
onReplyCancel?(): any;
edit?: boolean;
disabled?: boolean;
+ focus?: boolean;
}
interface CommentFormState {
setTimeout(() => autosize.update(textarea), 10);
}
- textarea.focus();
+ if (this.props.focus) {
+ textarea.focus();
+ }
}
}
edit
onReplyCancel={this.handleReplyCancel}
disabled={this.props.locked}
+ focus
/>
)}
{!this.state.showEdit && !this.state.collapsed && (
node={node}
onReplyCancel={this.handleReplyCancel}
disabled={this.props.locked}
+ focus
/>
)}
{node.children && !this.state.collapsed && (