Fix SetHistory in SmartComponent
This commit is contained in:
parent
c693fc9a20
commit
d40cd8cf8e
1 changed files with 0 additions and 1 deletions
|
@ -54,7 +54,6 @@ function SetHistory(root: Element | Document,
|
||||||
eventInitDict?: CustomEventInit): void {
|
eventInitDict?: CustomEventInit): void {
|
||||||
const history: IHistoryState[] = eventInitDict?.detail.history;
|
const history: IHistoryState[] = eventInitDict?.detail.history;
|
||||||
const historyCurrentStep: number | undefined = eventInitDict?.detail.historyCurrentStep;
|
const historyCurrentStep: number | undefined = eventInitDict?.detail.historyCurrentStep;
|
||||||
ReviveHistoryAction(history);
|
|
||||||
setNewHistory(history, historyCurrentStep);
|
setNewHistory(history, historyCurrentStep);
|
||||||
const customEvent = new CustomEvent<IEditorState>('setHistory', { detail: editorState });
|
const customEvent = new CustomEvent<IEditorState>('setHistory', { detail: editorState });
|
||||||
root.dispatchEvent(customEvent);
|
root.dispatchEvent(customEvent);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue