mirror of
https://github.com/wizarrrr/wizarr.git
synced 2026-08-04 09:13:03 -04:00
Now supports multiple next buttons in interaction gating Refactor the `attachInteractionGating` function to handle multiple "next" buttons, specifically for mobile and desktop versions. The previous implementation only considered a single `#next-btn` element. This change updates it to find both `#wizard-next-btn` and `#wizard-next-btn-desktop`, allowing interaction gating to apply to all relevant next buttons. A shared `enableAllButtons` function is introduced to ensure that once interaction is detected in the content, all next buttons are enabled simultaneously. Store button-specific handlers for proper cleanup. Also, ensure the `attachInteractionGating` function is re-initialized after HTMX processes new content.