DatePickerE: Add focus trap #2870
Labels
Package: react-component-library
Package/code type
Size: Small
Assessed as small task
Type: Enhancement
New feature or request
From @k9dh3zij (in #2841):
This is based on https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html
There is a library that can do this: https://github.com/focus-trap/focus-trap-react
However, from testing, there seems to be a bug in the underlying library (https://github.com/focus-trap/focus-trap) – when a date after the first of the month is focused, the tab key stops functioning (while Shift+Tab continues to work).
This needs further investigation and a bug to be reported.
The text was updated successfully, but these errors were encountered: