bannzai / bannzai/SpreadsheetView

Unable to deselect item in spreadsheetView(_:didSelectItemAt:)

Open
#286 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
3.5k
Forks
476
PR merge metrics
No merged PRs in 30d

Description

## Expected Behavior
Calling `spreadsheetView.deselectItem(at: indexPath, animated: true)` in the `spreadsheetView(_:didSelectItemAt:)` delegate method should deselect the item. `UITableView` has this behavior.

## Actual Behavior
Calling `spreadsheetView.deselectItem(at: indexPath, animated: true)` in the `spreadsheetView(_:didSelectItemAt:)` delegate method does not deselect the item because the `indexPath` is not added to `selectedIndexPaths` until after the delegate method is called.

## Steps to Reproduce the Problem

1. Tap to select a cell
2. See that the cell remains selected

## Specifications

- Xcode version: 13.4.1
- iOS version: 15.5
- Dependency manager + version: Cocoapods 1.11.3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.