mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(tap-click): nested buttons get activated first
This commit is contained in:
@ -148,7 +148,7 @@ export function startTapClick(doc: Document) {
|
|||||||
function getActivatableTarget(ev: any): any {
|
function getActivatableTarget(ev: any): any {
|
||||||
if (ev.composedPath) {
|
if (ev.composedPath) {
|
||||||
const path = ev.composedPath() as HTMLElement[];
|
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];
|
const el = path[i];
|
||||||
if (el.hasAttribute && el.hasAttribute('ion-activable')) {
|
if (el.hasAttribute && el.hasAttribute('ion-activable')) {
|
||||||
return el;
|
return el;
|
||||||
|
Reference in New Issue
Block a user