TextEditorComponent hiddenInput preventScroll

This commit is contained in:
Ben Klein
2020-06-05 05:09:16 -04:00
parent e4b9c1e081
commit 3fc47ec215

View File

@@ -1673,7 +1673,7 @@ module.exports = class TextEditorComponent {
this.scheduleUpdate();
}
this.getHiddenInput().focus();
this.getHiddenInput().focus({preventScroll:true});
}
// Called by TextEditorElement so that this function is always the first
@@ -1932,7 +1932,7 @@ module.exports = class TextEditorComponent {
// Disabling the hidden input makes it lose focus as well, so we have to
// re-enable and re-focus it.
this.getHiddenInput().disabled = false;
this.getHiddenInput().focus();
this.getHiddenInput().focus({preventScroll:true});
});
return;
}