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:
@@ -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});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user