Added default behaviour for return key
This commit is contained in:
parent
ebf4488e90
commit
5f97a21965
|
@ -114,6 +114,10 @@ struct UIKitTextField: UIViewRepresentable {
|
|||
|
||||
didHandleReturnKey = nextView?.becomeFirstResponder() ?? false
|
||||
}
|
||||
|
||||
if didHandleReturnKey == false {
|
||||
textField.resignFirstResponder() // default behaviour
|
||||
}
|
||||
|
||||
return didHandleReturnKey
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue