[SSE mobile] Fix bug 51160

This commit is contained in:
JuliaSvinareva 2021-07-09 12:51:50 +03:00
parent 4ada95809b
commit 050c030962

View file

@ -4,6 +4,7 @@ export class storeFocusObjects {
constructor() {
makeObservable(this, {
focusOn: observable,
changeFocus: action,
_focusObjects: observable,
_cellInfo: observable,
resetFocusObjects: action,
@ -17,10 +18,14 @@ export class storeFocusObjects {
}
focusOn = undefined;
changeFocus(isObj) {
this.focusOn = isObj ? 'obj' : 'cell';
}
_focusObjects = [];
resetFocusObjects(objects) {
this.focusOn = 'obj';
this._focusObjects = objects;
}
@ -56,7 +61,6 @@ export class storeFocusObjects {
_cellInfo;
resetCellInfo (cellInfo) {
this.focusOn = 'cell';
this._cellInfo = cellInfo;
}