Text cursor now focuses on the textbox after performing a drag and drop of some text
Этот коммит содержится в:
@@ -180,9 +180,9 @@ export default class CreateComment extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
handleTextDrop(text) {
|
handleTextDrop(text) {
|
||||||
const originalText = this.state.messageText;
|
const newText = this.state.messageText + text;
|
||||||
this.setState({messageText: originalText + text});
|
this.handleUserInput(newText);
|
||||||
React.findDOMNode(this.refs.textbox).focus();
|
Utils.setCaretPosition(React.findDOMNode(this.refs.textbox.refs.message), newText.length);
|
||||||
}
|
}
|
||||||
removePreview(id) {
|
removePreview(id) {
|
||||||
let previews = this.state.previews;
|
let previews = this.state.previews;
|
||||||
|
|||||||
@@ -232,9 +232,9 @@ export default class CreatePost extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
handleTextDrop(text) {
|
handleTextDrop(text) {
|
||||||
const originalText = this.state.messageText;
|
const newText = this.state.messageText + text;
|
||||||
this.setState({messageText: originalText + text});
|
this.handleUserInput(newText);
|
||||||
React.findDOMNode(this.refs.textbox).focus();
|
Utils.setCaretPosition(React.findDOMNode(this.refs.textbox.refs.message), newText.length);
|
||||||
}
|
}
|
||||||
removePreview(id) {
|
removePreview(id) {
|
||||||
let previews = this.state.previews;
|
let previews = this.state.previews;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user