Skip to content

Commit 3961357

Browse files
matthewcheokMatthew Cheok
and
Matthew Cheok
authored
Fix selection on any item model (#32)
Co-authored-by: Matthew Cheok <[email protected]>
1 parent edaad3b commit 3961357

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010
- Added an example with text field to show how can we use `avoidsKeyboard` feature
1111

12+
### Fixed
13+
- `AnyItemModel` is selectable when there are no `DidSelect` callbacks on the underlying model
14+
1215
## [0.3.0](https://github.com/airbnb/epoxy-ios/compare/0.2.0...0.3.0) - 2021-04-23
1316

1417
### Added

Sources/EpoxyCollectionView/Models/ItemModel/AnyItemModel.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ extension AnyItemModel: InternalItemModeling {
7575
}
7676

7777
public var isSelectable: Bool {
78-
model.isSelectable
78+
model.isSelectable || didSelect != nil
7979
}
8080

8181
public func configuredView(traitCollection: UITraitCollection) -> UIView {

0 commit comments

Comments
 (0)