[0.1.2] - 2025-11-08
Fixed
- Content display robustness - Fixed critical bugs where content would disappear or show incorrect sections after navigation and collapse/expand operations
- Selection preservation - Selection now correctly preserved by heading text instead of index during collapse/expand operations
- Content scroll reset - Content scroll now properly resets to top when navigating between different sections
- Dynamic content height - Content height and scrollbar now correctly update based on the currently selected section
- Collapse parent behavior - Collapsing a parent heading now correctly selects the parent instead of an arbitrary item
- Search filter preservation - Search filtering now maintains the current selection when possible instead of always jumping to first item
- Bookmark stability - Bookmarks now store heading text instead of indices, remaining valid after collapse operations
Technical
- Added
select_by_text()helper method for robust text-based selection - Added
update_content_metrics()to synchronize content height and scroll state - Added
previous_selectiontracking to detect selection changes - Changed bookmark storage from
Option<usize>toOption<String>