Repository navigation
v1.1.1
v1.1.1 — Patch release: adds optional dismiss behaviors to Collapsible and bumps the monorepo version.
Note: All packages in this monorepo share the v1.1.1 tag, but only the @data-slot/collapsible package received code changes in this release.
@data-slot/collapsible
- ✨ Added new options:
closeOnEscape(default: false) — pressing Escape closes the collapsible; when the trigger is inside the collapsible, focus returns to the trigger after close. - ✨ Added new options:
closeOnClickOutside(default: false) — a pointer press outside the collapsible will close it. - Internal improvements: added use of
createDismissLayer,containsWithPortals, andfocusElementto provide more robust, portal-aware dismiss and focus behavior. - Interaction robustness: guard for disabled triggers was consolidated (interactions are blocked while the trigger is disabled) to prevent accidental toggles.
Breaking changes
- None. These are opt-in features (both options default to false).
Commits