/
Prevent propragation of a click event to parent
Convertigo Public Knowledge base
Prevent propragation of a click event to parent
The events have to be changed from onTap to onClick in order to use the stopPropagation() function.
You have to set the same event for both parent and child elements.
This should not change the application behaviour on real device.
There is a global setting in the NgxApp (ex Application) object to change onTap event to onClick :
Set it to true and all onTap events will act as onClick ones.
In the Tap event of the button use the following code
event.stopPropagation();
In a new or an existing Custom action component as a child of the Tap event.
The event will not “bubble” up to the parent (listItem).
Related content
Swipe back gesture fired twice on iOS device
Swipe back gesture fired twice on iOS device
More like this
Closing a modal with Android back button
Closing a modal with Android back button
More like this
Custom ActionSheet Controller
Custom ActionSheet Controller
More like this
Prevent page access if not logged in and redirect to login page
Prevent page access if not logged in and redirect to login page
More like this
How to manage the Alert component buttons?
How to manage the Alert component buttons?
More like this
Call class page function from element Event
Call class page function from element Event
More like this
(c) Convertigo 2023 https://www.convertigo.com