@geotab/zenith 1.19.0 → 1.19.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -40,6 +40,10 @@ Zenith library provides components defined in Zenith Design System. It includes
40
40
 
41
41
  ## Change log
42
42
 
43
+ ## 1.19.1
44
+
45
+ * Fix stepper issue with decimal values
46
+
43
47
  ## 1.19.0
44
48
 
45
49
  * New interface for dropdown component. For flat data displayed in dropdowns, you can now specify that all items in the dataset are considered selected
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.onBeforeInput = void 0;
4
4
  const onBeforeInput = (e) => {
5
- var _a, _b;
6
5
  switch (e.nativeEvent.data.toLowerCase()) {
7
6
  // prevent using some special characters
8
7
  case "e":
@@ -10,14 +9,6 @@ const onBeforeInput = (e) => {
10
9
  e.preventDefault();
11
10
  break;
12
11
  }
13
- // prevent using separator if "step" is not decimal
14
- case ".":
15
- case ",": {
16
- if (!((_a = e.target.getAttribute("step")) === null || _a === void 0 ? void 0 : _a.includes(".")) && !((_b = e.target.getAttribute("step")) === null || _b === void 0 ? void 0 : _b.includes(","))) {
17
- e.preventDefault();
18
- }
19
- break;
20
- }
21
12
  // prevent multiple minus signs
22
13
  case "-": {
23
14
  if (e.target.value.includes("-")) {
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@geotab/zenith",
3
- "version": "1.19.0",
3
+ "publishConfig": {
4
+ "access": "public"
5
+ },
6
+ "version": "1.19.1-beta.0",
4
7
  "description": "Zenith components library on React",
5
8
  "main": "dist/index.js",
6
9
  "types": "dist/index.d.ts",
@@ -90,8 +93,5 @@
90
93
  "last 1 firefox version",
91
94
  "last 1 safari version"
92
95
  ]
93
- },
94
- "publishConfig": {
95
- "access": "public"
96
- }
96
+ }
97
97
  }