mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-24 09:13:24 +08:00
Only deselect a table cell if it doesn't want to keep its selection, i.e. as long as data_cell[:keep_selection] is not true
This commit is contained in:
@@ -205,7 +205,7 @@ module ProMotion
|
||||
|
||||
def tableView(table_view, didSelectRowAtIndexPath:index_path)
|
||||
data_cell = @promotion_table_data.cell(index_path: index_path)
|
||||
table_view.deselectRowAtIndexPath(index_path, animated: true)
|
||||
table_view.deselectRowAtIndexPath(index_path, animated: true) unless data_cell[:keep_selection] == true
|
||||
|
||||
data_cell[:arguments] ||= {}
|
||||
data_cell[:arguments][:cell] = data_cell if data_cell[:arguments].is_a?(Hash) # TODO: Should we really do this?
|
||||
|
||||
Reference in New Issue
Block a user