Skip to content

[material-ui][ButtonGroup] Renders incorrectly when rendering conditionally from custom component. #39488

Open
@AlexShukel

Description

@AlexShukel

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Link to live example:
https://codesandbox.io/s/hopeful-rubin-yskwss?file=/src/App.js

Current behavior 😯

Single button rendered without right border.

Expected behavior 🤔

Button should have all borders as it is a single visible children in ButtonGroup.

Context 🔦

This issue is related to #38978
This behavior has been broken from version 5.14.9, see this comment for more info.

Your environment 🌎

System:
OS: Windows 10 10.0.22621
Binaries:
Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files\nodejs\node_modules\corepack\shims\yarn.CMD
npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: Not Found
Edge: Chromium (118.0.2088.46)

Metadata

Metadata

Assignees

Labels

component: ButtonGroupThe React component.ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedregression 🐛A bug, but worse

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions