Web app improvements

This commit is contained in:
Ilya Laktyushin
2022-04-07 16:15:07 +04:00
parent 08ec00bf91
commit b92746d357
7 changed files with 60 additions and 42 deletions

View File

@@ -829,8 +829,12 @@ public class AttachmentController: ViewController {
super.dismiss(animated: false, completion: {})
}
public var ensureUnfocused = true
public override func dismiss(animated flag: Bool, completion: (() -> Void)? = nil) {
self.view.endEditing(true)
if self.ensureUnfocused {
self.view.endEditing(true)
}
if flag {
if !self.didDismiss {
self.didDismiss = true