From 9bcf4ef460fb15a81fc80b931b0950713e137859 Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Tue, 22 Aug 2017 09:50:54 +0300 Subject: [PATCH] Removes list-view selected state when rowHeight is set (#4725) --- tns-core-modules/ui/list-view/list-view.ios.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tns-core-modules/ui/list-view/list-view.ios.ts b/tns-core-modules/ui/list-view/list-view.ios.ts index c0597a88c..20af23d7e 100644 --- a/tns-core-modules/ui/list-view/list-view.ios.ts +++ b/tns-core-modules/ui/list-view/list-view.ios.ts @@ -186,6 +186,12 @@ class UITableViewRowHeightDelegateImpl extends NSObject implements UITableViewDe } return indexPath; } + + public tableViewDidSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath { + tableView.deselectRowAtIndexPathAnimated(indexPath, true); + + return indexPath; + } public tableViewHeightForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number { let owner = this._owner.get();