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

[MDCDrawer] Modal Drawer breaks after opening #5615

@Its-treason

Description

@Its-treason

Bug report

After opening the drawer the followling Error occurs: "FocusTrap: Element must have at least one focusable child"

Steps to reproduce

  1. Copy this Codepen in a html document and open it. The Drawer HTML Code is from the Example found here

  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions