Skip to content

Commit 92eef3c

Browse files
omerfarukaslanÖmer Aslan
andauthored
Add interaction Id to DOM event plugin (#163)
Co-authored-by: Ömer Aslan <[email protected]>
1 parent 4c3427a commit 92eef3c

File tree

7 files changed

+161
-205
lines changed

7 files changed

+161
-205
lines changed

app/dom_event.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747

4848
function registerDomEvents() {
4949
cwr('registerDomEvents', [
50-
{ event: 'click', cssLocator: '[label="label2"]' }
50+
{ event: 'click', cssLocator: '[label="label2"]' },
51+
{ event: 'click', cssLocator: '[label^="button-"]' }
5152
]);
5253
}
5354
</script>
@@ -90,6 +91,14 @@
9091
</button>
9192
<button id="button5" label="label2">Button Five</button>
9293
<hr />
94+
<button id="button6" data-rum-id="button-six" label="button-label1">
95+
Button Six
96+
</button>
97+
<button id="button7" data-rum-id="button-seven" label="button-label2">
98+
<span>Button Seven</span>
99+
</button>
100+
<button>Button Eight</button>
101+
<hr />
93102
<button id="dispatch" onclick="dispatch()">Dispatch</button>
94103
<button id="clearRequestResponse" onclick="clearRequestResponse()">
95104
Clear

app/dom_event_mutation_observer_enabled.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747

4848
function registerDomEvents() {
4949
cwr('registerDomEvents', [
50-
{ event: 'click', cssLocator: '[label="label2"]' }
50+
{ event: 'click', cssLocator: '[label="label2"]' },
51+
{ event: 'click', cssLocator: '[label^="button-"]' }
5152
]);
5253
}
5354
</script>
@@ -90,6 +91,14 @@
9091
</button>
9192
<button id="button5" label="label2">Button Five</button>
9293
<hr />
94+
<button id="button6" data-rum-id="button-six" label="button-label1">
95+
Button Six
96+
</button>
97+
<button id="button7" data-rum-id="button-seven" label="button-label2">
98+
<span>Button Seven</span>
99+
</button>
100+
<button>Button Eight</button>
101+
<hr />
93102
<button id="dispatch" onclick="dispatch()">Dispatch</button>
94103
<button id="clearRequestResponse" onclick="clearRequestResponse()">
95104
Clear

0 commit comments

Comments
 (0)