Skip to content

Commit 03da98e

Browse files
committed
fix(tap-click): nested buttons get activated first
1 parent 0842939 commit 03da98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/utils/tap-click.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export function startTapClick(doc: Document) {
148148
function getActivatableTarget(ev: any): any {
149149
if (ev.composedPath) {
150150
const path = ev.composedPath() as HTMLElement[];
151-
for (let i = path.length - 3; i >= 0; i--) {
151+
for (let i = 0; i < path.length - 2; i++) {
152152
const el = path[i];
153153
if (el.hasAttribute && el.hasAttribute('ion-activable')) {
154154
return el;

0 commit comments

Comments
 (0)