clear composer undo history when sending a message
This commit is contained in:
parent
0adca10f9f
commit
9bc8ff7e1e
3 changed files with 10 additions and 0 deletions
|
@ -18,6 +18,10 @@ export const MAX_STEP_LENGTH = 10;
|
|||
|
||||
export default class HistoryManager {
|
||||
constructor() {
|
||||
this.clear();
|
||||
}
|
||||
|
||||
clear() {
|
||||
this._stack = [];
|
||||
this._newlyTypedCharCount = 0;
|
||||
this._currentIndex = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue