The message-drawer is present on every course page. It has interactive elements which receive focus while hidden. The drawer has 'aria-hidden=true' when invisible. Bu this code does not prevent interactive elements from receiving the focus.
Solution: add 'display:none' to id='message-drawer-xxx'. Other options are possible. See https://fuzzbomb.github.io/accessibility-demos/visually-hidden-focus-test.html