Fix keyboard not appearing when logging in on iPad

This commit is contained in:
Justin Mazzocchi 2021-03-21 00:49:19 -07:00
parent f49fc774e9
commit bfcb999b25
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C

View file

@ -119,7 +119,10 @@ private extension AddIdentityViewController {
logInButton.setTitle(NSLocalizedString("add-identity.log-in", comment: ""), for: .normal)
logInButton.addAction(
UIAction { [weak self] _ in self?.viewModel.logInTapped() },
UIAction { [weak self] _ in
self?.urlTextField.resignFirstResponder()
self?.viewModel.logInTapped()
},
for: .touchUpInside)
joinButton.addAction(UIAction { [weak self] _ in self?.join() }, for: .touchUpInside)