Experienced the MdModal-component not having focus trap enabled. This fix makes sure the useEffect that registers the eventhandler for focus trapping is run after modal is opened.
Checklist before requesting a review
[x] I have performed a self-review and test of my code
[x] I have added label to the PR (major, minor or patch)
[ ] If new component: Is story for component created in stories-folder?
[ ] If new component: Is tsx-file import added to packages/react/index.tsx?
[ ] If new component: Is css-file added to packages/css/index.css?
Describe your changes
Experienced the MdModal-component not having focus trap enabled. This fix makes sure the useEffect that registers the eventhandler for focus trapping is run after modal is opened.
Checklist before requesting a review
major
,minor
orpatch
)stories
-folder?packages/react/index.tsx
?packages/css/index.css
?