diff --git a/changelog.md b/changelog.md index 7fce149bed..3a415ae685 100644 --- a/changelog.md +++ b/changelog.md @@ -16,6 +16,7 @@ * [RTE]: fixed error while merging cells without content * [RTE]: fixed bug when files added from attachment button inserted in preview mode instead of attachment block * [RTE]: fixed crash when removing the sole table row +* [Modals]: autofocus first active element on modal open. It's a temporary fix, because of bug in react-focus-lock lib(https://github.com/theKashey/react-focus-lock/issues/340). Ideally focus should move to the first active element only after 'Tab' key was pressed, we will come back to this solution when bug will be fixed. # 5.11.0 - 15.11.2024 diff --git a/uui-components/src/overlays/ModalBlocker.tsx b/uui-components/src/overlays/ModalBlocker.tsx index 891ead3b58..ee050da3aa 100644 --- a/uui-components/src/overlays/ModalBlocker.tsx +++ b/uui-components/src/overlays/ModalBlocker.tsx @@ -53,7 +53,7 @@ export const ModalBlocker = React.forwardRef( onClick={ handleBlockerClick } aria-label="Click to close a modal" /> - + {props.children}