Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Tap event stops working after orientation change or navigation #110

Open
wumbo opened this issue Jun 18, 2019 · 1 comment
Open

Tap event stops working after orientation change or navigation #110

wumbo opened this issue Jun 18, 2019 · 1 comment

Comments

@wumbo
Copy link

wumbo commented Jun 18, 2019

<CardView (tap)="onTap(x)"></CardView>

Tapping on the card view works the first time, but certain events (e.g. rotating the screen on iOS or navigating to a new view and back on Android) cause it to stop responding.

On Android the ripple effect still works but the callback is not called.

@sinandogan
Copy link

Hi wumbo,
I had the same problem.
Typescript code doesn't work. But nativescript core code is working.

export function onTap1() {
var topmost = frameModule.topmost();
var navigationOptions = {
moduleName: 'pages/appointment/appointment-page',
animated: true
}
topmost.navigate(navigationOptions);
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants