8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 217cd78 commit efb1a93Copy full SHA for efb1a93
packages/core/data/dom-events/dom-event.ts
@@ -300,8 +300,8 @@ export class DOMEvent implements Event {
300
301
// Bubbling phase, e.g. [Button, StackLayout, Page]
302
// It's correct to dispatch the event to the target during both phases.
303
- for (const currentTarget of eventPath.reverse()) {
304
- this.currentTarget = currentTarget;
+ for (let i = eventPath.length - 1; i >= 0; i--) {
+ const currentTarget = eventPath[i];
305
this.eventPhase = this.target === this.currentTarget ? this.AT_TARGET : this.BUBBLING_PHASE;
306
307
this.handleEvent({
0 commit comments