Open mj12albert opened 3 days ago
This seems back-to-front to me. Wouldn't it be better—and more in-line with our other components—if the panel contents unmounted by default, and then you can use the keepMounted
prop if you need it?
cc @michaldudak
I'd name the prop keepMounted
for sure. As for its default value, I don't have a strong opinion, but I lean towards making it consistent with other components (so false
).
Follow up to https://github.com/mui/base-ui/pull/577#pullrequestreview-2345745521