Restore composer focus after event edit (#7065)
This commit is contained in:
parent
57fae01991
commit
4cbef216e7
1 changed files with 12 additions and 3 deletions
|
@ -207,7 +207,10 @@ class EditMessageComposer extends React.Component<IEditMessageComposerProps, ISt
|
||||||
event: null,
|
event: null,
|
||||||
timelineRenderingType: this.context.timelineRenderingType,
|
timelineRenderingType: this.context.timelineRenderingType,
|
||||||
});
|
});
|
||||||
dis.fire(Action.FocusSendMessageComposer);
|
dis.dispatch({
|
||||||
|
action: Action.FocusSendMessageComposer,
|
||||||
|
context: this.context.timelineRenderingType,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
break;
|
break;
|
||||||
|
@ -237,7 +240,10 @@ class EditMessageComposer extends React.Component<IEditMessageComposerProps, ISt
|
||||||
event: null,
|
event: null,
|
||||||
timelineRenderingType: this.context.timelineRenderingType,
|
timelineRenderingType: this.context.timelineRenderingType,
|
||||||
});
|
});
|
||||||
dis.fire(Action.FocusSendMessageComposer);
|
dis.dispatch({
|
||||||
|
action: Action.FocusSendMessageComposer,
|
||||||
|
context: this.context.timelineRenderingType,
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
private get shouldSaveStoredEditorState(): boolean {
|
private get shouldSaveStoredEditorState(): boolean {
|
||||||
|
@ -431,7 +437,10 @@ class EditMessageComposer extends React.Component<IEditMessageComposerProps, ISt
|
||||||
event: null,
|
event: null,
|
||||||
timelineRenderingType: this.context.timelineRenderingType,
|
timelineRenderingType: this.context.timelineRenderingType,
|
||||||
});
|
});
|
||||||
dis.fire(Action.FocusSendMessageComposer);
|
dis.dispatch({
|
||||||
|
action: Action.FocusSendMessageComposer,
|
||||||
|
context: this.context.timelineRenderingType,
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
private cancelPreviousPendingEdit(): void {
|
private cancelPreviousPendingEdit(): void {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue