added focus after calendar item picked

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-05-28 11:59:54 -05:00
parent 9c09841815
commit bf21f45e9a

View File

@ -186,8 +186,11 @@ open class DatePicker: EntryFieldBase, DatePickerViewControllerDelegate, UIPopov
internal func didSelectDate(_ controller: DatePickerViewController, date: Date) { internal func didSelectDate(_ controller: DatePickerViewController, date: Date) {
selectedDate = date selectedDate = date
controller.dismiss(animated: true) controller.dismiss(animated: true) { [weak self] in
sendActions(for: .valueChanged) guard let self else { return }
self.sendActions(for: .valueChanged)
UIAccessibility.post(notification: .layoutChanged, argument: self.fieldStackView)
}
} }
public func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle { public func adaptivePresentationStyle(for controller: UIPresentationController) -> UIModalPresentationStyle {