nstudio / nativescript-cardview

:diamonds: :clubs: NativeScript widget for Material Design CardView
MIT License
282 stars 51 forks source link

Tap event stops working after orientation change or navigation #110

Open wumbo opened 5 years ago

wumbo commented 5 years ago

<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 commented 5 years ago

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); };