Fixes #20134: Prevent HTMX OOB swaps in embedded tables #871

Closed
opened 2026-04-05 18:23:45 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jnovinger on 11/15/2025

Fixes: #20134

The htmx/table.html template was unconditionally including out-of-band (OOB) swaps for UI elements that only exist on list pages, causing htmx:oobErrorNoTarget errors when tables were embedded on detail pages.

This change adds checks for table.embedded to conditionally exclude OOB swaps for .total-object-count, #table_save_link, and .bulk-action-buttons when rendering embedded tables.

*Originally created by @jnovinger on 11/15/2025* ### Fixes: #20134 The `htmx/table.html` template was unconditionally including out-of-band (OOB) swaps for UI elements that only exist on list pages, causing `htmx:oobErrorNoTarget` errors when tables were embedded on detail pages. This change adds checks for `table.embedded` to conditionally exclude OOB swaps for `.total-object-count`, `#table_save_link`, and `.bulk-action-buttons` when rendering embedded tables.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#871