@cocreate/events 1.6.2 → 1.6.4

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,17 @@
1
+ ## [1.6.4](https://github.com/CoCreate-app/CoCreate-events/compare/v1.6.3...v1.6.4) (2023-03-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * el typo ([7b0ec3a](https://github.com/CoCreate-app/CoCreate-events/commit/7b0ec3a2dc04580efb4850d60ef63adcfbfe5f28))
7
+
8
+ ## [1.6.3](https://github.com/CoCreate-app/CoCreate-events/compare/v1.6.2...v1.6.3) (2023-03-16)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bump dependencies' ([4299e33](https://github.com/CoCreate-app/CoCreate-events/commit/4299e337d8bed359ab081ece2faeb77caecaebef))
14
+
1
15
  ## [1.6.2](https://github.com/CoCreate-app/CoCreate-events/compare/v1.6.1...v1.6.2) (2023-03-16)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cocreate/events",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
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",
@@ -60,8 +60,8 @@
60
60
  "webpack-log": "^3.0.1"
61
61
  },
62
62
  "dependencies": {
63
- "@cocreate/actions": "^1.5.59",
64
- "@cocreate/docs": "^1.5.12",
65
- "@cocreate/utils": "^1.18.0"
63
+ "@cocreate/actions": "^1.6.0",
64
+ "@cocreate/docs": "^1.6.0",
65
+ "@cocreate/utils": "^1.19.0"
66
66
  }
67
67
  }
package/src/index.js CHANGED
@@ -237,7 +237,7 @@ const CoCreateEvents = {
237
237
  else if (groupPrevious)
238
238
  el.previousElementSibling.querySelectorAll(groupPrevious).forEach((el) =>
239
239
  self.setValue(prefix, el, groupAttribute, groupValues, groupKey, 'deactivate')
240
- );
240
+ );
241
241
 
242
242
  });
243
243
  }
@@ -258,14 +258,15 @@ const CoCreateEvents = {
258
258
  self.setValue(prefix, el, targetAttribute, values, targetKey)
259
259
  );
260
260
  } else if (targetNext) {
261
- el.nextElementSibling.querySelectorAll(targetNext).forEach((el) =>
261
+ element.nextElementSibling.querySelectorAll(targetNext).forEach((el) =>
262
262
  self.setValue(prefix, el, targetAttribute, values, targetKey)
263
263
  );
264
264
  } else if (targetPrevious) {
265
- el.previousElementSibling.querySelectorAll(targetPrevious).forEach((el) =>
265
+ element.previousElementSibling.querySelectorAll(targetPrevious).forEach((el) =>
266
266
  self.setValue(prefix, el, targetAttribute, values, targetKey)
267
267
  );
268
- }
268
+ } else
269
+ self.setValue(prefix, element, targetAttribute, values, targetKey);
269
270
 
270
271
  document.dispatchEvent(new CustomEvent(`${prefix}End`, {
271
272
  detail: {}