@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 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
- const source = sourceSelector(e.target);
262
- if (source !== lastSource) {
263
- sampleRUM('fill', { source });
264
- lastSource = source;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-rum-enhancer",
3
- "version": "2.30.1",
3
+ "version": "2.30.2",
4
4
  "description": "Helix RUM Enhancer",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
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
- const source = sourceSelector(e.target);
391
- if (source !== lastSource) {
392
- sampleRUM('fill', { source });
393
- lastSource = source;
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
- 749947aafb5daf964780e64146edf135
1
+ 389f38e9847798177fc9bd3f8f9b763b