@cocreate/events 1.20.0 → 1.20.1

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.20.1](https://github.com/CoCreate-app/CoCreate-events/compare/v1.20.0...v1.20.1) (2024-05-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * getValue from element else fallback to value ([c8e06af](https://github.com/CoCreate-app/CoCreate-events/commit/c8e06afb6d88ab382cead8065dea88cdec3300ca))
7
+
1
8
  # [1.20.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.19.5...v1.20.0) (2024-05-08)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/events",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "description": "A simple events component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
5
5
  "keywords": [
6
6
  "events",
package/src/index.js CHANGED
@@ -277,7 +277,7 @@ const CoCreateEvents = {
277
277
 
278
278
  let ifValue = element.getAttribute(`${prefix}-if-value`)
279
279
  if (!ifValue && ifValue !== "")
280
- ifValue = values // await element.getValue()
280
+ ifValue = await element.getValue() || values //values // await element.getValue()
281
281
  else if (ifValue || ifValue === "")
282
282
  ifValue = [ifValue]
283
283
  else