This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Description
Bug report
After opening the drawer the followling Error occurs: "FocusTrap: Element must have at least one focusable child"
Steps to reproduce
-
Copy this Codepen in a html document and open it. The Drawer HTML Code is from the Example found here
-
Click on the button which has an onclick attribute. The Drawer should open now and in the Console you should see a Error.
Expected behavior
The drawer should Close when clicking on the scrim or typing drawer.open = false in the console
Actual behavior
Nothing, the drawer will not Close anymore
Your Environment:
| Software |
Version(s) |
| MDC Web |
Version: 5.0.0 this |
| Browser |
Firefox v72, Chrome v80.0.3987.87 |
| Operating System |
Ubuntu 18.04 (64bit) with following Desktop envirements i3-gaps, Mate and Gnome |
Additional context
This first happened to me in mdc Web version 5.0.0, version 4.0.0 works fine
Possible solution
Update Documentation if the Modal Drawer HTML Code changed.