Skip to content

PhoenixKit 1.7.187: Bulk delete asks for confirmation again

PhoenixKit 1.7.187 fixes bulk actions in admin lists that ran without asking: a bulk or permanent delete with a confirmation prompt executed right away, with no dialog.

The script behind bulk selection stopped each click before Phoenix’s own confirmation handling could see it, so the prompt never appeared. The script now shows the confirmation itself. Cancelling stops the action, and nothing is sent to the server. Modules that pair a bulk action with a confirmation, such as Comments, Posts and Entities, get the prompt back once they run on this release. Nothing else changes.

Full release notes: PhoenixKit 1.7.187

1.7.187 · 12 July 2026

Fixed

  • data-confirm was silently swallowed on BulkSelectScope action buttons. The hook’s _onActionClick calls e.preventDefault() synchronously on every data-bulk-action click; phoenix_html’s own window-level click listener (which implements data-confirm) bails out early via if (e.defaultPrevented) return;, so its confirm dialog never fired. Any button carrying both data-confirm and data-bulk-action — most notably bulk/permanent delete — executed with no prompt. The hook now checks data-confirm itself and calls window.confirm() before proceeding, mirroring phoenix_html’s native behavior; cancelling stops the click and the LiveView event is never pushed. Found while migrating phoenix_kit_comments, phoenix_kit_posts, and phoenix_kit_entities to BulkSelect — all three already pair data-confirm with a destructive bulk action and are fixed retroactively once they pick up this release.

PhoenixKit 1.7.187. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.