You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.