kind of working

This commit is contained in:
Kevin G Christiano 2020-12-22 16:56:02 -05:00
parent db424ce04a
commit f040331b2c
2 changed files with 6 additions and 2 deletions

View File

@ -325,6 +325,8 @@ import UIKit
model.wasInitiallySelected = true
self.isSelected = true
}
showError = model.isValid!
}
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {

View File

@ -167,9 +167,11 @@ open class MoleculeListTemplate: ThreeLayerTableViewController, TemplateProtocol
else { continue }
entryFieldModel.errorMessage = userError
entryFieldModel.isValid = true
entryFieldModel.text = ""
DispatchQueue.main.async {
let c = self.tableView.cellForRow(at: IndexPath(row: 0, section: 0))?.layoutSubviews()
DispatchQueue.main.async { [self] in
tableView.reloadData()
}
}
}