@cocreate/events 1.6.3 → 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 +7 -0
- package/package.json +1 -1
- package/src/index.js +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
|
|
1
8
|
## [1.6.3](https://github.com/CoCreate-app/CoCreate-events/compare/v1.6.2...v1.6.3) (2023-03-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
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
|
-
|
|
261
|
+
element.nextElementSibling.querySelectorAll(targetNext).forEach((el) =>
|
|
262
262
|
self.setValue(prefix, el, targetAttribute, values, targetKey)
|
|
263
263
|
);
|
|
264
264
|
} else if (targetPrevious) {
|
|
265
|
-
|
|
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: {}
|