Skip to content

Commit

Permalink
EPMRPP-81950 || modal focus fix (#3934)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim73i authored Jul 23, 2024
1 parent 0cd3ba3 commit ddb9e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/componentLibrary/modal/modalLayout/modalLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const ModalLayout = ({
animate={{ opacity: 1, marginTop: modalMargin }}
exit={{ opacity: 0, marginTop: -modalMargin }}
transition={{ duration: 0.3 }}
onAnimationComplete={() => modalRef.current?.focus()}
onAnimationStart={() => modalRef.current?.focus()}
>
<ModalHeader title={title} headerNode={headerNode} onClose={closeModal} />
<Scrollbars
Expand Down

0 comments on commit ddb9e70

Please sign in to comment.