Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rholstad opened this issue Jul 29, 2022 · 0 comments
Open

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

rholstad opened this issue Jul 29, 2022 · 0 comments

Comments

@rholstad
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant