@cocreate/organizations 1.5.6 → 1.5.7

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.5.7](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.5.6...v1.5.7) (2022-08-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * getValue and setValue using HTMLElement.prototype ([735ac73](https://github.com/CoCreate-app/CoCreate-organizations/commit/735ac73e5836772974b63005ae868523c6cfbe99))
7
+
1
8
  ## [1.5.6](https://github.com/CoCreate-app/CoCreate-organizations/compare/v1.5.5...v1.5.6) (2022-08-19)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/organizations",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "A simple organizations component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "organizations",
package/src/client.js CHANGED
@@ -23,7 +23,7 @@ const CoCreateOrganization = {
23
23
  //. get form data
24
24
  elements.forEach(el => {
25
25
  let name = el.getAttribute('name');
26
- let value = el.getValue(el) || el.getAttribute('value');
26
+ let value = el.getValue();
27
27
  if (!name || !value) return;
28
28
  if (el.getAttribute('data-type') == 'array') {
29
29
  value = [value];