@kizmann/pico-js 0.3.23 → 0.3.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/pico-js",
3
- "version": "0.3.23",
3
+ "version": "0.3.24",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -726,8 +726,12 @@ export class Dom
726
726
  }
727
727
  }
728
728
 
729
- value(val)
729
+ value(val = undefined)
730
730
  {
731
+ if ( val === undefined ) {
732
+ return this.get(0).value;
733
+ }
734
+
731
735
  this.each((el) => el.value = val);
732
736
 
733
737
  return this;