Skip to content

Add id to per page select form - #2122

Merged
Flo0807 merged 1 commit into
developfrom
feature/select-per-page-form-id
Jul 20, 2026
Merged

Add id to per page select form#2122
Flo0807 merged 1 commit into
developfrom
feature/select-per-page-form-id

Conversation

@Flo0807

@Flo0807 Flo0807 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Description

The per page <.form> rendered by Backpex.HTML.Resource.select_per_page/1 had no id, which triggers a LiveView test warning:

Detected a form with phx-change but missing id

Without an id, LiveView cannot perform form recovery after a crash or reconnect.

This adds a static id="select-per-page-form". The component is rendered once per index view (resource_index_main.html.heex), so a static id stays unique.

Testing

  • mix format / mix credo clean
  • MIX_ENV=test mix lint — 174 tests, 0 failures
  • Verified end-to-end in a downstream app: patching the dep and recompiling removes the warning from the test output.

@Flo0807 Flo0807 added the bug Something isn't working label Jul 20, 2026
@Flo0807 Flo0807 self-assigned this Jul 20, 2026
@Flo0807
Flo0807 enabled auto-merge July 20, 2026 06:47
@Flo0807
Flo0807 added this pull request to the merge queue Jul 20, 2026
Merged via the queue into develop with commit d89cc46 Jul 20, 2026
8 checks passed
@Flo0807
Flo0807 deleted the feature/select-per-page-form-id branch July 20, 2026 06:52
@Flo0807 Flo0807 mentioned this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant