Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 398edf2

Browse files
BrianLitwinrnystrom
authored andcommitted
Resign keyboard on transition (#2122)
* resigns keyboard after selecting issue * add code comment
1 parent 88d5fa7 commit 398edf2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Classes/Repository/RepositorySummarySectionController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ final class RepositorySummarySectionController: ListGenericSectionController<Rep
5555
guard let number = self.object?.number else { return }
5656
let issueModel = IssueDetailsModel(owner: repo.owner, repo: repo.name, number: number)
5757
let controller = IssuesViewController(client: client, model: issueModel)
58+
viewController?.view.endEditing(false) // resign keyboard if it was triggered to become active by SearchBar
5859
viewController?.navigationController?.pushViewController(controller, animated: trueUnlessReduceMotionEnabled)
5960
}
6061

0 commit comments

Comments
 (0)