Merge branch 'bugfix/radio_selection_fix' into 'release/7_6_0'

disable tap if radio is disabled

See merge request BPHV_MIPS/mvm_core_ui!387
This commit is contained in:
Pfeil, Scott Robert 2020-04-16 13:54:22 -04:00
commit 44b8be8095
2 changed files with 4 additions and 4 deletions

View File

@ -90,6 +90,9 @@ import UIKit
/// The action performed when tapped.
func tapAction() {
if !isEnabled {
return
}
if let radioButtonModel = radioButtonSelectionHelper {
radioButtonModel.selected(self)
} else {

View File

@ -71,9 +71,6 @@ import UIKit
}
public override func didSelectCell(at index: IndexPath, delegateObject: MVMCoreUIDelegateObject?, additionalData: [AnyHashable: Any]?) {
if radioButton.isEnabled {
radioButton.tapAction()
}
radioButton.tapAction()
}
}