You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
apply autocomplete changes to mock to fix editor unit tests
This commit is contained in:
@ -40,12 +40,12 @@ class MockAutoComplete {
|
||||
} else {
|
||||
pill = this._partCreator.roomPill(match.resourceId);
|
||||
}
|
||||
this._updateCallback({replacePart: pill, close});
|
||||
this._updateCallback({replaceParts: [pill], close});
|
||||
}
|
||||
}
|
||||
|
||||
// called by EditorModel when typing into pill-candidate part
|
||||
onPartUpdate(part, offset) {
|
||||
onPartUpdate(part, pos) {
|
||||
this._part = part;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user