### Steps to reproduce Steps: 1. Open this link to live example: https://stackblitz.com/edit/wnj5a88b-evgtfe5s?file=src%2FDemo.tsx 2. Expand `Data Grid` 3. Click the checkbox of a child item 5. Collapse `Data Grid` 6. Expand another top level node. ### Current behavior The parent checkbox appears to be unchecked. Here is a video demonstration of the current behavior: https://github.com/user-attachments/assets/e6af68b6-e752-45b9-828c-fdae3fc307cc ### Expected behavior The parent checkbox should retain an indeterminate or checked state based on child selections. ### Context _No response_ ### Your environment <details> <summary><code>npx @mui/envinfo</code></summary> ``` Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here. ``` </details> **Search keywords**: treeview indeterminate state