You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
put caret after replaced part if no caretOffset is given by autocomplete
This commit is contained in:
@@ -28,7 +28,7 @@ export default class AutocompleteWrapperModel {
|
||||
this._getAutocompleterComponent().onEscape(e);
|
||||
this._updateCallback({
|
||||
replacePart: new PlainPart(this._queryPart.text),
|
||||
replaceCaret: this._queryOffset,
|
||||
caretOffset: this._queryOffset,
|
||||
close: true,
|
||||
});
|
||||
}
|
||||
@@ -61,7 +61,7 @@ export default class AutocompleteWrapperModel {
|
||||
if (!completion) {
|
||||
this._updateCallback({
|
||||
replacePart: this._queryPart,
|
||||
replaceCaret: this._queryOffset,
|
||||
caretOffset: this._queryOffset,
|
||||
});
|
||||
} else {
|
||||
this._updateCallback({
|
||||
|
||||
Reference in New Issue
Block a user