From 03da98e2339d63361624ff3b035c2ca44a20290b Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Sun, 12 Aug 2018 23:09:53 +0200 Subject: [PATCH] fix(tap-click): nested buttons get activated first --- core/src/utils/tap-click.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/utils/tap-click.ts b/core/src/utils/tap-click.ts index 8f49a8f4e7..4410d76a6c 100644 --- a/core/src/utils/tap-click.ts +++ b/core/src/utils/tap-click.ts @@ -148,7 +148,7 @@ export function startTapClick(doc: Document) { function getActivatableTarget(ev: any): any { if (ev.composedPath) { const path = ev.composedPath() as HTMLElement[]; - for (let i = path.length - 3; i >= 0; i--) { + for (let i = 0; i < path.length - 2; i++) { const el = path[i]; if (el.hasAttribute && el.hasAttribute('ion-activable')) { return el;