Skip to content

Commit 9bcf4ef

Browse files
author
Hristo Hristov
authored
Removes list-view selected state when rowHeight is set (NativeScript#4725)
1 parent 6e06eba commit 9bcf4ef

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tns-core-modules/ui/list-view/list-view.ios.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ class UITableViewRowHeightDelegateImpl extends NSObject implements UITableViewDe
186186
}
187187
return indexPath;
188188
}
189+
190+
public tableViewDidSelectRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): NSIndexPath {
191+
tableView.deselectRowAtIndexPathAnimated(indexPath, true);
192+
193+
return indexPath;
194+
}
189195

190196
public tableViewHeightForRowAtIndexPath(tableView: UITableView, indexPath: NSIndexPath): number {
191197
let owner = this._owner.get();

0 commit comments

Comments
 (0)