removed comments
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
49911145cf
commit
56a72f62a2
@ -11,8 +11,6 @@ import UIKit
|
||||
public class RadioBoxGroup: RadioBoxGroupBase<DefaultRadioBoxGroupModel, RadioBox> {
|
||||
|
||||
public override func didSelect(_ selectedControl: ModelHandlerType) {
|
||||
//only changes local model in control,
|
||||
//this is now disconnected from the parent model
|
||||
for (index, control) in selectorViews.enumerated() {
|
||||
//only change the old and new
|
||||
if control == selectedControl {
|
||||
|
||||
@ -11,8 +11,6 @@ import UIKit
|
||||
public class RadioButtonGroup: RadioButtonGroupBase<DefaultRadioButtonGroupModel, RadioButton> {
|
||||
|
||||
public override func didSelect(_ selectedControl: ModelHandlerType) {
|
||||
//only changes local model in control,
|
||||
//this is now disconnected from the parent model
|
||||
for (index, control) in selectorViews.enumerated() {
|
||||
//only change the old and new
|
||||
if control == selectedControl {
|
||||
@ -20,6 +18,9 @@ public class RadioButtonGroup: RadioButtonGroupBase<DefaultRadioButtonGroupModel
|
||||
$0.selected = true
|
||||
}
|
||||
model.selectors[index] = updated
|
||||
if hasError {
|
||||
hasError = false
|
||||
}
|
||||
|
||||
} else if control.isSelected {
|
||||
let updated = model.selectors[index].copyWith {
|
||||
@ -29,12 +30,7 @@ public class RadioButtonGroup: RadioButtonGroupBase<DefaultRadioButtonGroupModel
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if hasError {
|
||||
hasError = false
|
||||
}
|
||||
sendActions(for: .valueChanged)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user