Skip to content

fix: restore changelist action state after navigation - #2236

Open
ahivert wants to merge 1 commit into
unfoldadmin:mainfrom
ahivert:fix/changelist-action-back-navigation
Open

fix: restore changelist action state after navigation#2236
ahivert wants to merge 1 commit into
unfoldadmin:mainfrom
ahivert:fix/changelist-action-back-navigation

Conversation

@ahivert

@ahivert ahivert commented Aug 21, 2026

Copy link
Copy Markdown

Summary

After running a changelist action with a confirmation page, such as Delete selected, navigating back restores
the native action select value but not Unfold’s Alpine action state. Consequently, x-show="action" remains
false and the Run button disappears.

This change synchronizes Alpine state with the select value during initialization and on pageshow, covering
browser back/BFCache restoration.

A regression test verifies the required Alpine bindings. No existing issue or PR covering this exact navigation
case was found.

Test plan

  • regression test
  • UI test manually
run_button_absent.mp4
run_button_fixed.mp4

Use of AI

All changes have been done by AI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant