[SSE mobile] Fix Bug 52830
This commit is contained in:
parent
291f2ddb7b
commit
afce03a1f9
|
@ -126,6 +126,7 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(observer(props =>
|
||||||
const _t = t('Statusbar', {returnObjects: true});
|
const _t = t('Statusbar', {returnObjects: true});
|
||||||
const isEdit = storeAppOptions.isEdit;
|
const isEdit = storeAppOptions.isEdit;
|
||||||
const isDisconnected = users.isDisconnected;
|
const isDisconnected = users.isDisconnected;
|
||||||
|
const isProtectedWorkbook = sheets.isProtectedWorkbook;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const on_main_view_click = e => {
|
const on_main_view_click = e => {
|
||||||
|
@ -183,7 +184,7 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(observer(props =>
|
||||||
|
|
||||||
if (index == api.asc_getActiveWorksheetIndex()) {
|
if (index == api.asc_getActiveWorksheetIndex()) {
|
||||||
if (!opened) {
|
if (!opened) {
|
||||||
if (isEdit && !isDisconnected && !model.locked) {
|
if (isEdit && !isDisconnected && !model.locked && !isProtectedWorkbook) {
|
||||||
api.asc_closeCellEditor();
|
api.asc_closeCellEditor();
|
||||||
f7.popover.open('#idx-tab-context-menu-popover', target);
|
f7.popover.open('#idx-tab-context-menu-popover', target);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue