Skip to content

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

Description

@rholstad

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions