Skip to content

ModalBackdrop not honoring its "show" prop #131

@josephfusco

Description

@josephfusco

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

When the show prop value is true, <ModalBackdrop show={true} />, the component is working as expected showing both the backdrop and children.

Screen Shot 2020-09-03 at 4 00 30 PM

When the show prop value is false, <ModalBackdrop show={false} />, the component hides the children content but is still showing the overlay.

Screen Shot 2020-09-03 at 4 00 07 PM

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

https://codesandbox.io/s/nervous-cohen-tdzb3?file=/src/index.js

What is the expected behavior?

When the show prop is false, no part of the component should be visible or obstructing clicks.

Which versions of MDL, and which browser / OS are affected by this issue? Did this work in previous versions of MDL?

This is an issue in the latest version of MDL, 2.24.1.
I am not sure how far back this issue goes but know that this is also not working in 2.23.0.

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