Skip to content

Commit

Permalink
Add interaction id to DOM event plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ömer Aslan authored and qhanam committed Jul 12, 2022
1 parent 4c3427a commit ee8f548
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 205 deletions.
11 changes: 10 additions & 1 deletion app/dom_event.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@

function registerDomEvents() {
cwr('registerDomEvents', [
{ event: 'click', cssLocator: '[label="label2"]' }
{ event: 'click', cssLocator: '[label="label2"]' },
{ event: 'click', cssLocator: '[label^="button-"]' }
]);
}
</script>
Expand Down Expand Up @@ -90,6 +91,14 @@
</button>
<button id="button5" label="label2">Button Five</button>
<hr />
<button id="button6" data-rum-id="button-six" label="button-label1">
Button Six
</button>
<button id="button7" data-rum-id="button-seven" label="button-label2">
<span>Button Seven</span>
</button>
<button>Button Eight</button>
<hr />
<button id="dispatch" onclick="dispatch()">Dispatch</button>
<button id="clearRequestResponse" onclick="clearRequestResponse()">
Clear
Expand Down
11 changes: 10 additions & 1 deletion app/dom_event_mutation_observer_enabled.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@

function registerDomEvents() {
cwr('registerDomEvents', [
{ event: 'click', cssLocator: '[label="label2"]' }
{ event: 'click', cssLocator: '[label="label2"]' },
{ event: 'click', cssLocator: '[label^="button-"]' }
]);
}
</script>
Expand Down Expand Up @@ -90,6 +91,14 @@
</button>
<button id="button5" label="label2">Button Five</button>
<hr />
<button id="button6" data-rum-id="button-six" label="button-label1">
Button Six
</button>
<button id="button7" data-rum-id="button-seven" label="button-label2">
<span>Button Seven</span>
</button>
<button>Button Eight</button>
<hr />
<button id="dispatch" onclick="dispatch()">Dispatch</button>
<button id="clearRequestResponse" onclick="clearRequestResponse()">
Clear
Expand Down
Loading

0 comments on commit ee8f548

Please sign in to comment.