Made SuggestionBox take back keyboard focus after the user clicks on a suggestion (#4112)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
b666ef6254
Коммит
d298e99d9b
@@ -113,6 +113,8 @@ export default class SuggestionBox extends React.Component {
|
|||||||
this.props.onInput(e);
|
this.props.onInput(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textbox.focus();
|
||||||
|
|
||||||
// set the caret position after the next rendering
|
// set the caret position after the next rendering
|
||||||
window.requestAnimationFrame(() => {
|
window.requestAnimationFrame(() => {
|
||||||
Utils.setCaretPosition(textbox, prefix.length + term.length + 1);
|
Utils.setCaretPosition(textbox, prefix.length + term.length + 1);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user