We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bf148e commit d9b5cd5Copy full SHA for d9b5cd5
lib/internal/event_target.js
@@ -310,7 +310,7 @@ class Event {
310
if (!isEvent(this))
311
throw new ERR_INVALID_THIS('Event');
312
if (value) {
313
- this.stopPropagation();
+ this.#propagationStopped = true;
314
}
315
316
test/parallel/test-eventtarget.js
@@ -738,3 +738,10 @@ let asyncTest = Promise.resolve();
738
controller.abort();
739
et.dispatchEvent(new Event('foo'));
740
741
+
742
+{
743
+ const event = new Event('foo');
744
+ strictEqual(event.cancelBubble, false);
745
+ event.cancelBubble = true;
746
+ strictEqual(event.cancelBubble, true);
747
+}
0 commit comments