using submit now
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
59294ebd51
commit
ac1957d1c3
@ -165,11 +165,13 @@ open class RadioBoxItem: Control, Changeable, FormFieldable, Groupable {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Overrides
|
// MARK: - Overrides
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
/// Executed on initialization for this View.
|
/// Called once when a view is initialized and is used to Setup additional UI or other constants and configurations.
|
||||||
open override func initialSetup() {
|
open override func setup() {
|
||||||
super.initialSetup()
|
super.setup()
|
||||||
onClick = { control in
|
|
||||||
control.toggle()
|
onClick = { [weak self] _ in
|
||||||
|
guard let self, isEnabled else { return }
|
||||||
|
toggle()
|
||||||
}
|
}
|
||||||
|
|
||||||
selectorView.bridge_accessibilityLabelBlock = { [weak self] in
|
selectorView.bridge_accessibilityLabelBlock = { [weak self] in
|
||||||
@ -205,12 +207,6 @@ open class RadioBoxItem: Control, Changeable, FormFieldable, Groupable {
|
|||||||
return accessibilityLabels.joined(separator: ", ")
|
return accessibilityLabels.joined(separator: ", ")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Called once when a view is initialized and is used to Setup additional UI or other constants and configurations.
|
|
||||||
open override func setup() {
|
|
||||||
super.setup()
|
|
||||||
|
|
||||||
isAccessibilityElement = false
|
isAccessibilityElement = false
|
||||||
selectorView.isAccessibilityElement = true
|
selectorView.isAccessibilityElement = true
|
||||||
selectorView.accessibilityTraits = .button
|
selectorView.accessibilityTraits = .button
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user