Merge pull request #1329 from ONLYOFFICE/feature/fix-bug-reactjs
Feature/fix bug reactjs
This commit is contained in:
commit
85f7f03f0c
|
@ -99,7 +99,8 @@ const Search = withTranslation()(props => {
|
|||
|
||||
if (params.find && params.find.length) {
|
||||
|
||||
api.asc_selectSearchingResults(true);
|
||||
if(params.highlight) api.asc_selectSearchingResults(true);
|
||||
|
||||
if (!api.asc_findText(params.find, params.forward, params.caseSensitive, params.highlight) ) {
|
||||
f7.dialog.alert(null, _t.textNoTextFound);
|
||||
}
|
||||
|
|
|
@ -85,7 +85,7 @@ const EditText = props => {
|
|||
{!isAndroid && <Icon slot="media" icon="icon-text-additional"></Icon>}
|
||||
</ListItem>
|
||||
</List>
|
||||
{paragraphObj ? (
|
||||
{paragraphObj || storeFocusObjects.settings.includes('text') ? (
|
||||
<Fragment>
|
||||
<List>
|
||||
<ListItem className='buttons'>
|
||||
|
@ -241,7 +241,8 @@ const PageFonts = props => {
|
|||
};
|
||||
|
||||
const paragraph = props.storeFocusObjects.paragraphObject;
|
||||
if (!paragraph && Device.phone) {
|
||||
const shapeObj = props.storeFocusObjects.shapeObject;
|
||||
if (!shapeObj && !paragraph && Device.phone) {
|
||||
$$('.sheet-modal.modal-in').length > 0 && f7.sheet.close();
|
||||
return null;
|
||||
}
|
||||
|
@ -325,7 +326,8 @@ const PageFontColor = props => {
|
|||
};
|
||||
|
||||
const paragraph = props.storeFocusObjects.paragraphObject;
|
||||
if (!paragraph && Device.phone) {
|
||||
const shapeObj = props.storeFocusObjects.shapeObject;
|
||||
if (!shapeObj && !paragraph && Device.phone) {
|
||||
$$('.sheet-modal.modal-in').length > 0 && f7.sheet.close();
|
||||
return null;
|
||||
}
|
||||
|
@ -391,6 +393,7 @@ const PageAdditionalFormatting = props => {
|
|||
const storeTextSettings = props.storeTextSettings;
|
||||
const storeFocusObjects = props.storeFocusObjects;
|
||||
const paragraphObj = storeFocusObjects.paragraphObject;
|
||||
const shapeObj = storeFocusObjects.shapeObject;
|
||||
const isSuperscript = storeTextSettings.isSuperscript;
|
||||
const isSubscript = storeTextSettings.isSubscript;
|
||||
|
||||
|
@ -408,7 +411,7 @@ const PageAdditionalFormatting = props => {
|
|||
letterSpacing = (paragraphObj.get_TextSpacing() === null || paragraphObj.get_TextSpacing() === undefined) ? paragraphObj.get_TextSpacing() : Common.Utils.Metric.fnRecalcFromMM(paragraphObj.get_TextSpacing());
|
||||
}
|
||||
|
||||
if (!paragraphObj && Device.phone) {
|
||||
if (!shapeObj && !paragraphObj && Device.phone) {
|
||||
$$('.sheet-modal.modal-in').length > 0 && f7.sheet.close();
|
||||
return null;
|
||||
}
|
||||
|
@ -473,7 +476,8 @@ const PageBullets = props => {
|
|||
const typeBullets = storeTextSettings.typeBullets;
|
||||
|
||||
const paragraph = props.storeFocusObjects.paragraphObject;
|
||||
if (!paragraph && Device.phone) {
|
||||
const shapeObj = props.storeFocusObjects.shapeObject;
|
||||
if (!shapeObj && !paragraph && Device.phone) {
|
||||
$$('.sheet-modal.modal-in').length > 0 && f7.sheet.close();
|
||||
return null;
|
||||
}
|
||||
|
@ -528,7 +532,8 @@ const PageNumbers = props => {
|
|||
const typeNumbers = storeTextSettings.typeNumbers;
|
||||
|
||||
const paragraph = props.storeFocusObjects.paragraphObject;
|
||||
if (!paragraph && Device.phone) {
|
||||
const shapeObj = props.storeFocusObjects.shapeObject;
|
||||
if (!shapeObj && !paragraph && Device.phone) {
|
||||
$$('.sheet-modal.modal-in').length > 0 && f7.sheet.close();
|
||||
return null;
|
||||
}
|
||||
|
@ -593,7 +598,8 @@ const PageLineSpacing = props => {
|
|||
const lineSpacing = storeTextSettings.lineSpacing;
|
||||
|
||||
const paragraph = props.storeFocusObjects.paragraphObject;
|
||||
if (!paragraph && Device.phone) {
|
||||
const shapeObj = props.storeFocusObjects.shapeObject;
|
||||
if (!shapeObj && !paragraph && Device.phone) {
|
||||
$$('.sheet-modal.modal-in').length > 0 && f7.sheet.close();
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -155,7 +155,7 @@ const Search = withTranslation()(props => {
|
|||
options.asc_setScanByRows(searchBy);
|
||||
options.asc_setLookIn(lookIn ? Asc.c_oAscFindLookIn.Formulas : Asc.c_oAscFindLookIn.Value);
|
||||
|
||||
api.asc_selectSearchingResults(true);
|
||||
if (params.highlight) api.asc_selectSearchingResults(true);
|
||||
|
||||
if (!api.asc_findText(options)) {
|
||||
f7.dialog.alert(null, _t.textNoTextFound);
|
||||
|
|
Loading…
Reference in a new issue