powerpagestoolkit 2.4.1 → 2.5.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.
Files changed (2) hide show
  1. package/dist/bundle.js +5 -1
  2. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -277,7 +277,11 @@ var DOMNodeReference = class _DOMNodeReference {
277
277
  this.value = this.element.value !== "" ? Number(this.element.value) : null;
278
278
  break;
279
279
  default:
280
- this.value = this.element.value;
280
+ if (this.element.classList.contains("decimal")) {
281
+ this.value = parseFloat(this.element.value);
282
+ } else {
283
+ this.value = this.element.value;
284
+ }
281
285
  break;
282
286
  }
283
287
  if (this.yesRadio instanceof _DOMNodeReference) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerpagestoolkit",
3
- "version": "2.4.1",
3
+ "version": "2.5.0",
4
4
  "description": "Reference, manipulate, and engage with Power Pages sites through the nodes in the DOM; use a variety of custom methods that allow customizing your power pages site quicker and easier. ",
5
5
  "main": "./dist/bundle.js",
6
6
  "types": "./dist/index.d.ts",