Digital ACT-191 CXTDT-546821 defect: Accessibility - Text area input field is not receiving swipe focus
This commit is contained in:
parent
3201840cad
commit
14d77ef81f
@ -160,7 +160,6 @@ open class TextArea: EntryFieldBase {
|
|||||||
/// Called once when a view is initialized and is used to Setup additional UI or other constants and configurations.
|
/// Called once when a view is initialized and is used to Setup additional UI or other constants and configurations.
|
||||||
open override func setup() {
|
open override func setup() {
|
||||||
super.setup()
|
super.setup()
|
||||||
accessibilityLabel = "TextArea"
|
|
||||||
validator = FormFieldValidator<TextArea>(field: self, rules: [.init(countRule)])
|
validator = FormFieldValidator<TextArea>(field: self, rules: [.init(countRule)])
|
||||||
|
|
||||||
containerStackView.pinToSuperView(.uniform(VDSFormControls.spaceInset))
|
containerStackView.pinToSuperView(.uniform(VDSFormControls.spaceInset))
|
||||||
@ -239,10 +238,11 @@ open class TextArea: EntryFieldBase {
|
|||||||
/// Used to update any Accessibility properties.
|
/// Used to update any Accessibility properties.
|
||||||
open override func updateAccessibility() {
|
open override func updateAccessibility() {
|
||||||
super.updateAccessibility()
|
super.updateAccessibility()
|
||||||
|
isAccessibilityElement = false
|
||||||
if showError {
|
if showError {
|
||||||
setAccessibilityLabel(for: [titleLabel, textView, errorLabel, helperLabel])
|
accessibilityElements = [titleLabel, textView, icon, errorLabel, helperLabel]
|
||||||
} else {
|
} else {
|
||||||
setAccessibilityLabel(for: [titleLabel, textView, helperLabel])
|
accessibilityElements = [titleLabel, textView, helperLabel]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user