fixes
This commit is contained in:
parent
03438a1165
commit
db0b953bad
@ -19,7 +19,8 @@ import UIKit
|
|||||||
public func set(_ radioButtonModel: RadioButtonModel, _ radioButton: RadioButton) {
|
public func set(_ radioButtonModel: RadioButtonModel, _ radioButton: RadioButton) {
|
||||||
self.fieldKey = radioButtonModel.fieldKey
|
self.fieldKey = radioButtonModel.fieldKey
|
||||||
if radioButtonModel.state {
|
if radioButtonModel.state {
|
||||||
if self.baseValue == nil {
|
if self.baseValue == nil,
|
||||||
|
let selected = radioButtonModel.baseValue as? Bool, selected {
|
||||||
self.baseValue = radioButtonModel.fieldValue
|
self.baseValue = radioButtonModel.fieldValue
|
||||||
}
|
}
|
||||||
selectedRadioButtonModel = radioButtonModel
|
selectedRadioButtonModel = radioButtonModel
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user