@adobe/helix-rum-enhancer 2.30.1 → 2.30.2
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/modules/index.js +6 -4
- package/package.json +1 -1
- package/src/index.js +6 -4
- package/src/index.md5 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [2.30.2](https://github.com/adobe/helix-rum-enhancer/compare/v2.30.1...v2.30.2) (2025-01-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* do not trigger fill checkpoint for hidden fields ([f6f4c51](https://github.com/adobe/helix-rum-enhancer/commit/f6f4c519d38c48740ace4ba64f47cafc6cea2f47))
|
|
7
|
+
|
|
1
8
|
## [2.30.1](https://github.com/adobe/helix-rum-enhancer/compare/v2.30.0...v2.30.1) (2025-01-17)
|
|
2
9
|
|
|
3
10
|
|
package/modules/index.js
CHANGED
|
@@ -258,10 +258,12 @@ function addFormTracking(parent) {
|
|
|
258
258
|
form.addEventListener('submit', (e) => sampleRUM('formsubmit', { target: targetSelector(e.target), source: sourceSelector(e.target) }), { once: true });
|
|
259
259
|
let lastSource;
|
|
260
260
|
form.addEventListener('change', (e) => {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
261
|
+
if (e.target.checkVisibility()) {
|
|
262
|
+
const source = sourceSelector(e.target);
|
|
263
|
+
if (source !== lastSource) {
|
|
264
|
+
sampleRUM('fill', { source });
|
|
265
|
+
lastSource = source;
|
|
266
|
+
}
|
|
265
267
|
}
|
|
266
268
|
});
|
|
267
269
|
form.addEventListener('focusin', (e) => {
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -387,10 +387,12 @@
|
|
|
387
387
|
form.addEventListener('submit', (e) => sampleRUM('formsubmit', { target: targetSelector(e.target), source: sourceSelector(e.target) }), { once: true });
|
|
388
388
|
let lastSource;
|
|
389
389
|
form.addEventListener('change', (e) => {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
390
|
+
if (e.target.checkVisibility()) {
|
|
391
|
+
const source = sourceSelector(e.target);
|
|
392
|
+
if (source !== lastSource) {
|
|
393
|
+
sampleRUM('fill', { source });
|
|
394
|
+
lastSource = source;
|
|
395
|
+
}
|
|
394
396
|
}
|
|
395
397
|
});
|
|
396
398
|
form.addEventListener('focusin', (e) => {
|
package/src/index.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
389f38e9847798177fc9bd3f8f9b763b
|