---
title: "April 2025 - v0.61.0"
description: "Release notes for v0.61.0."
date: 2025-04-30
---

### Added

- Implemented handling for `htmx:oobAfterSwap` events across all relevant components. This ensures components are correctly initialized even when added to the page via Out-of-Band swaps, further improving dynamic update reliability.

### Changed

- Standardized the JavaScript initialization pattern (`initAllComponents`, `handleHtmxSwap`) across all components for better consistency and maintainability.
- Robust Initialization Logic: Refined the component initialization process to better handle edge cases and dependencies (e.g., waiting for external libraries like Chart.js, highlight.js, Floating UI before initialization).
- Code Consistency: Applied the standardized initialization pattern throughout the component JavaScript code.
- While compatibility with HTMX swaps (including OOB) has been significantly enhanced, complex dynamic updates might still reveal edge cases. Please report any unexpected behavior via GitHub issues.

### Removed

- Code Cleanup: Removed redundant checks (e.g., `readyState`) and improved code structure within component scripts.

### Fixed

- Popover: Fixed an issue where popovers might not close correctly after multiple HTMX swaps due to inconsistent state management or listener handling during re-initialization.
- Initialization Errors: Addressed potential TypeErrors during initialization (e.g., in Calendar) caused by incorrect handling of the `DOMContentLoaded` event argument.
- General Stability: Improved the reliability of component initialization, especially in dynamic environments involving HTMX swaps.

Released in [v0.61.0](https://github.com/axadrn/shadcn-templ/releases/tag/v0.61.0).
