Stop event propagation in NativeScript ios tap event
See original GitHub issueI have a tap
event in my code. Its parent(not an immediate parent) also has tap
event. In Android
, everything works fine. But in ios
, the event
is propagating upwards to that parent. How to stop that event propagation
(such as event.stopPropagation()
in javascript).
Sample XML code:
<StackLayout tap="newsDetails" data-args="{{ $value }}">
<StackLayout orientation="horizontal" >
<Label text="Share" class="icon" tap="shareNews" data-args="{{ $value }}"/>
</StackLayout>
</StackLayout>
Note: I am using NativeScript core
Please help me find the solution.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
NativeScript Event Bubbling (a short story of propagating Tap)
Imagine that we want to disable the button interaction on some occasions (e.g., inactive option). In the same time, we want to trigger...
Read more >Stop event propagation in NativeScript ios tap event
I have a tap event in my code. Its parent(not an immediate parent) also has tap event. In Android, everything works fine. But...
Read more >Event Bubbling and Gestures in NativeScript | Tutorial
In this NativeScript tutorial, I show a few gotchas when it comes to event bubbling and specifically nested view gesture handling.
Read more >Stop event propagation Nativescript (vue) - DEV Community
A hack to implement stop event propagation. Tagged with nativescript, nativescriptvue, vue, snippet.
Read more >Events - NativeScript Docs
To prevent these memory leaks, it is a good practice to remove your event listener handler before releasing the listener object. Unfortunately, sometimes...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
This question is answered here.
please use this repository for posting issues, bugs, and feature request. For how-to related question use the community channels like https://discourse.nativescript.org/
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.