fix caret position after autocomplete (#7118)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
df1ff4ec97
Коммит
e06686dbf4
@@ -275,7 +275,7 @@ export default class SuggestionBox extends React.Component {
|
||||
// set the caret position after the next rendering
|
||||
window.requestAnimationFrame(() => {
|
||||
if (textbox.value === newValue) {
|
||||
Utils.setCaretPosition(textbox, newValue.length);
|
||||
Utils.setCaretPosition(textbox, prefix.length + term.length + 1);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user