- {!isAndroid && {Number(letterSpacing).toFixed(2) + ' ' + Common.Utils.Metric.getCurrentMetricName()}
}
+ {!isAndroid && {(Number.isInteger(letterSpacing) ? letterSpacing : letterSpacing.toFixed(2)) + ' ' + Common.Utils.Metric.getCurrentMetricName()}
}
- {isAndroid && }
+ {isAndroid && }
diff --git a/apps/spreadsheeteditor/mobile/src/controller/FilterOptions.jsx b/apps/spreadsheeteditor/mobile/src/controller/FilterOptions.jsx
index d1c950bb6..131ba83e4 100644
--- a/apps/spreadsheeteditor/mobile/src/controller/FilterOptions.jsx
+++ b/apps/spreadsheeteditor/mobile/src/controller/FilterOptions.jsx
@@ -63,6 +63,7 @@ const FilterOptionsController = () => {
const onClearFilter = () => {
const api = Common.EditorApi.get();
if(api) api.asc_clearFilter();
+ setCheckSort('');
};
const onDeleteFilter = () => {
@@ -79,21 +80,17 @@ const FilterOptionsController = () => {
const setClearDisable = (config) => {
let arr = config.asc_getValues();
let lenCheck = arr.filter((item) => item.visible == true).length;
- lenCheck == arr.length ? setIsValid(true) : setIsValid(false)
+ lenCheck == arr.length ? setIsValid(true) : setIsValid(false);
};
const setDataFilterCells = (config) => {
- function isNumeric(value) {
- return !isNaN(parseFloat(value)) && isFinite(value);
- }
-
let value = null,
isnumber = null,
arrCells = [];
config.asc_getValues().forEach((item, index) => {
value = item.asc_getText();
- isnumber = isNumeric(value);
+ isnumber = !isNaN(parseFloat(value)) && isFinite(value);
arrCells.push({
id : index,
@@ -111,12 +108,7 @@ const FilterOptionsController = () => {
const onUpdateCell = (id, state) => {
const api = Common.EditorApi.get();
- if ( id == 'all' ) {
- listVal.forEach(item => item.check = state);
- } else {
- listVal[id].check = state;
- }
-
+ id == 'all' ? listVal.forEach(item => item.check = state) : listVal[id].check = state;
setListValue([...listVal]);
if ( listVal.some(item => item.check) ) {
diff --git a/apps/spreadsheeteditor/mobile/src/less/app.less b/apps/spreadsheeteditor/mobile/src/less/app.less
index a3bcb96d9..66c3cd23a 100644
--- a/apps/spreadsheeteditor/mobile/src/less/app.less
+++ b/apps/spreadsheeteditor/mobile/src/less/app.less
@@ -84,3 +84,9 @@
}
}
}
+
+.item-input-wrap {
+ input[type = number] {
+ -moz-appearance: textfield;
+ }
+}