### Duplicates - [X] I have searched the existing issues ### Latest version - [X] 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 https://github.com/mui/material-ui/issues/38978 This behavior has been broken from version `5.14.9`, see [this comment](https://github.com/mui/material-ui/issues/38978#issuecomment-1766469170) 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)