[SSE mobile] Fix Bug 54703
This commit is contained in:
parent
fe5a8496cc
commit
36388f5360
|
@ -398,11 +398,18 @@ class MainController extends Component {
|
||||||
this.api.asc_registerCallback('asc_onEditCell', (state) => {
|
this.api.asc_registerCallback('asc_onEditCell', (state) => {
|
||||||
if (state == Asc.c_oAscCellEditorState.editStart || state == Asc.c_oAscCellEditorState.editEnd) {
|
if (state == Asc.c_oAscCellEditorState.editStart || state == Asc.c_oAscCellEditorState.editEnd) {
|
||||||
const isEditCell = state === Asc.c_oAscCellEditorState.editStart;
|
const isEditCell = state === Asc.c_oAscCellEditorState.editStart;
|
||||||
|
const isEditEnd = state === Asc.c_oAscCellEditorState.editEnd;
|
||||||
|
|
||||||
if (storeFocusObjects.isEditCell !== isEditCell) {
|
if (storeFocusObjects.isEditCell !== isEditCell) {
|
||||||
storeFocusObjects.setEditCell(isEditCell);
|
storeFocusObjects.setEditCell(isEditCell);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isEditEnd) {
|
||||||
|
storeFocusObjects.setEditFormulaMode(false);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
const isFormula = state === Asc.c_oAscCellEditorState.editFormula;
|
const isFormula = state === Asc.c_oAscCellEditorState.editFormula;
|
||||||
|
|
||||||
if (storeFocusObjects.editFormulaMode !== isFormula) {
|
if (storeFocusObjects.editFormulaMode !== isFormula) {
|
||||||
storeFocusObjects.setEditFormulaMode(isFormula);
|
storeFocusObjects.setEditFormulaMode(isFormula);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue