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

Commit 1ef1796

Browse files
joeroccarnystrom
authored andcommitted
adds dismiss keyboard on new issue cancel (#740)
1 parent f176875 commit 1ef1796

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Classes/New Issue/NewIssueTableViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ final class NewIssueTableViewController: UITableViewController, UITextFieldDeleg
161161
/// Ensures there are no unsaved changes before dismissing the view controller. Will prompt user if unsaved changes.
162162
@objc
163163
func onCancel() {
164+
titleField.resignFirstResponder()
165+
bodyField.resignFirstResponder()
164166
cancelAction_onCancel(
165167
texts: [titleText, bodyText],
166168
title: NSLocalizedString("Unsaved Changes", comment: "New Issue - Cancel w/ Unsaved Changes Title"),

0 commit comments

Comments
 (0)