disable tap if radio is disabled

This commit is contained in:
Suresh, Kamlesh 2020-04-16 13:30:15 -04:00
parent 8684834edf
commit dfa49641d8
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()
}
}