Skip to content

Commit e6a9a78

Browse files
committed
fix(item): fire click event for all interactives
1 parent bc63e19 commit e6a9a78

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

core/src/components/item/item.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,14 @@ export class Item implements ComponentInterface, AnchorInterface, ButtonInterfac
305305
*/
306306
if (firstInteractive.tagName === 'ION-INPUT' || firstInteractive.tagName === 'ION-TEXTAREA') {
307307
(firstInteractive as HTMLIonInputElement | HTMLIonTextareaElement).setFocus();
308-
} else {
309-
firstInteractive.click();
310-
/**
311-
* Stop the item event from being triggered
312-
* as the firstInteractive click event will also
313-
* trigger the item click event.
314-
*/
315-
ev.stopImmediatePropagation();
316308
}
309+
firstInteractive.click();
310+
/**
311+
* Stop the item event from being triggered
312+
* as the firstInteractive click event will also
313+
* trigger the item click event.
314+
*/
315+
ev.stopImmediatePropagation();
317316
}
318317
}
319318
}

0 commit comments

Comments
 (0)