Repository navigation
foldkit@0.22.0
·
1519 commits
to main
since this release
Minor Changes
-
515610d: ### Breaking Changes
- Menu anchor positioning via portals — menu items container renders in a portal root (
document.body) when anchor positioning is enabled, escapingoverflow: hiddenancestors. Opt out withportal: false - Menu isModal defaults to false — aligns with HeadlessUI, Radix, and Ariakit conventions. Consumers that need scroll lock and inert can opt in with
isModal: true - Anchor positioning moved to snabbdom hooks — replaced subscription-based positioning with insert/destroy hooks for tighter lifecycle management
- Dropped Popover API from anchor positioning — removed
popoverattribute approach in favor of portal rendering
Features
- iOS Safari scroll lock —
lockScrollnow interceptstouchmoveevents on iOS Safari, which ignoresoverflow: hiddenondocumentElement - Command namespace export —
Commandis now exported as a namespace viafoldkit/commandsubpath, matching other module exports - Keyboard modifier attributes — all keyboard handler attributes now include
KeyboardModifiers - Lifecycle hook attributes — added
OnInsertandOnDestroyhook attributes for snabbdom lifecycle events - advanceFocus Task and FocusDirection type — exported for external focus management
- Menu anchor positioning via portals — menu items container renders in a portal root (