Fix duplicate events when revert in polymer 2

Due to event retargetting, in shadow DOM, event will be fired
both from the first element and the shadowroot host.

Bug: Issue 11322
Change-Id: I52fbc0fac9dfdaf945dce3da0a266bfe58b0bd38
This commit is contained in:
Tao Zhou
2019-08-14 17:41:26 +02:00
parent d5e6101a8e
commit d8c2e3b1c8
18 changed files with 46 additions and 6 deletions

View File

@@ -79,11 +79,13 @@
_handleConfirmTap(e) {
e.preventDefault();
e.stopPropagation();
this.fire('confirm', null, {bubbles: false});
},
_handleCancelTap(e) {
e.preventDefault();
e.stopPropagation();
this.fire('cancel', null, {bubbles: false});
},