Merge branch 'bugfix/layout_timing_9_1' into 'release/9_1_0'
error checks See merge request BPHV_MIPS/mvm_core_ui!742
This commit is contained in:
commit
e9b1c4b64b
@ -88,14 +88,18 @@ import UIKit
|
|||||||
}
|
}
|
||||||
|
|
||||||
@objc public override func dismissFieldInput(_ sender: Any?) {
|
@objc public override func dismissFieldInput(_ sender: Any?) {
|
||||||
performDropdownAction()
|
if !textField.isFirstResponder {
|
||||||
|
performDropdownAction()
|
||||||
|
}
|
||||||
super.dismissFieldInput(sender)
|
super.dismissFieldInput(sender)
|
||||||
}
|
}
|
||||||
|
|
||||||
func performDropdownAction() {
|
func performDropdownAction() {
|
||||||
if let baseDropdownEntryFieldModel = baseDropdownEntryFieldModel, let actionModel = baseDropdownEntryFieldModel.action {
|
guard let baseDropdownEntryFieldModel = baseDropdownEntryFieldModel,
|
||||||
let additionalDataWithSource = additionalData.dictionaryAdding(key: KeySourceModel, value: baseDropdownEntryFieldModel)
|
let actionModel = baseDropdownEntryFieldModel.action
|
||||||
MVMCoreActionHandler.shared()?.asyncHandleAction(with: actionModel, additionalData: additionalDataWithSource, delegateObject: delegateObject)
|
else { return }
|
||||||
}
|
|
||||||
|
let additionalDataWithSource = additionalData.dictionaryAdding(key: KeySourceModel, value: baseDropdownEntryFieldModel)
|
||||||
|
MVMCoreActionHandler.shared()?.asyncHandleAction(with: actionModel, additionalData: additionalDataWithSource, delegateObject: delegateObject)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -270,7 +270,9 @@ import UIKit
|
|||||||
bottomBar?.frame = CGRect(x: 0, y: bounds.height - size, width: bounds.width, height: size)
|
bottomBar?.frame = CGRect(x: 0, y: bounds.height - size, width: bounds.width, height: size)
|
||||||
|
|
||||||
if updateMoleculeLayout || heightChanged {
|
if updateMoleculeLayout || heightChanged {
|
||||||
delegateObject?.moleculeDelegate?.moleculeLayoutUpdated(self)
|
DispatchQueue.main.async { [self] in
|
||||||
|
delegateObject?.moleculeDelegate?.moleculeLayoutUpdated(self)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setNeedsDisplay()
|
setNeedsDisplay()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user