Closed Mil4n0r closed 7 months ago
Thank you for opening an issue! 🚀
Our team will review it as soon as possible. In the meantime, please make sure that you've provided all the necessary details to help us understand and address the issue effectively.
Feel free to contribute and participate in discussions!
Describe the bug
This bug seems to be related to #1515. The components that don't work as expected are
Dropdown
andCalendar
.Dropdown
: When pressing up and down keys, the focus gets stuck in the last item, no matter what.Calendar
: When pressing it, it won't open.It seems that the bug is related to the way focus events are handled, as both of those components are calling
element.focus()
at the same time as theFocusLock
To Reproduce
Example:
@dxc-technology\halstack-react
package.DxcDropdown
orDxcCalendar
inside aDxcDialog
DxcDialog
Expected behaviour Both components must work the same way they do when they are outside of a
Dialog