Skip to content

Modal when show is false still rendered in virtual DOM #6887

@TonyFTannous-Byd

Description

@TonyFTannous-Byd

Prerequisites

Describe the bug

My question is, if i have a Modal component where show is false, is still re-rendered when the parent component cause a rerender, if yes why do not upgrade it to return null when show is false

Expected behavior

My question is, if i have a Modal component where show is false, is still re-rendered when the parent component cause a rerender, if yes why do not upgrade it to return null when show is false

To Reproduce

...

Reproducible Example

https://github.com/react-bootstrap/react-bootstrap/issues/new?assignees=-&labels=bug&projects=&template=bug_report.yml&title=Bug

Screenshots

...

What operating system(s) are you seeing the problem on?

Windows

What browser(s) are you seeing the problem on?

Chrome

What version of React-Bootstrap are you using?

2.10.7

What version of Bootstrap are you using?

5.3.3

Additional context

..

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