Open mj12albert opened 2 weeks ago
https://deploy-preview-807--base-ui.netlify.app/
Generated by :no_entry_sign: dangerJS against 798e9a46732c9e6dc9b10fb2c1de2403e4c0b9e1
@colmtuite @vladmoroz Do you think it's an issue that 2 props are required to use hidden-until-found now?
<Collapsible.Panel hiddenUntilFound keepMounted>
{/* content */}
</Collapsible.Panel>
@mj12albert I think we should always mount the panel when hiddenUntilFound
is used, regardless of keepMounted
If keepMounted
is undefined, then yes, we can make hiddenUntilFound
make the component always mounted. But when it's explicitly set to false
, I'd show a warning (in dev mode only, though).
Updated ~ would appreciate a review @vladmoroz @michaldudak 🙏
Closes https://github.com/mui/base-ui/issues/728
We decided to default
keepMounted
tofalse
for consistency with other components.Since
hiddenUntilFound
requireskeepMounted={true}
to work, using it will overridekeepMounted
and show a warning in dev mode if bothhiddenUntilFound
andkeepMounted={false}
are specified.