Skip to content

PhoenixKit 2.35.0: Right-click menus on table rows

PhoenixKit 2.35.0 lets admin tables open a row’s menu with a right-click, and removes test sitemap files that 2.34.0 shipped by mistake.

Row menus at the pointer

A table row’s actions sit behind a small ⋮ button. A row marked data-row-menu-context now also opens that menu where the user right-clicks. The mark can go on a whole row or on one cell, to limit where the gesture works, and the card view of a table has a matching card_context_menu option. It is opt-in: modules turn it on per table, and leaving the mark out turns it off.

The browser’s own menu stays where it is still useful. Right-clicking a text field, inside a text selection, or on a row whose menu is not shown keeps it, so Copy and Inspect remain available. On the keyboard, the Menu key or Shift+F10 opens the menu beside its ⋮ button, and a long press on Android no longer also opens the row under the finger. Items that link to another page keep working as links.

Row menus that stay in step

An open row menu now closes when the page scrolls or is resized, instead of staying fixed over a different row while still acting on its own. When the server changes a row’s actions while its menu is open, the menu shows the current items, so an action that is no longer offered, such as a retry after a job succeeded, cannot be clicked from the old copy. Keyboard focus stays on the item in the same place.

Sort by label

The sort control can show a visible Sort by label before it. It is off by default, so existing toolbars keep their height.

Test sitemaps removed

The 2.34.0 package included sitemap files from a test run, for site.example.com. A fresh install served one of them at /sitemap.xml until the sitemap was generated again. They are no longer in the package, and later packages leave generated sitemaps out.

Upgrading

No migration and no configuration.

Full release notes: PhoenixKit 2.35.0

2.35.0 · 21 September 2026

Added

  • Right-click a row to open its ⋮ menu at the pointer. Flag the row data-row-menu-context (<.table_default_row data-row-menu-context>, or card_context_menu on table_default for the card view) and the table_row_menu rendered inside it opens where the user clicked. Opt-in; omit the attribute to turn it off. A text field, a text selection inside the row, and a row whose menu is not rendered all keep the browser’s own menu. The Menu key / Shift+F10 opens it beside the ⋮ trigger, and an Android long press does not also activate the row underneath. Per-row navigate/href items keep working, which Core.ContextMenu’s single shared menu cannot offer.
  • sort_selector takes label — a visible “Sort by” before the control, off by default so existing toolbars keep their height.

Changed

  • An open row menu closes when the page scrolls or resizes, instead of staying fixed over a different row while still acting on its own.
  • Core.ContextMenu and the row menu share one pointer-placement rule (window.PhoenixKitMenus.pointerPosition).

Fixed

  • Generated sitemaps no longer ship in the Hex package. files: ~w(priv …) takes whatever is on disk, gitignored or not, so 2.34.0 carried a test run’s priv/static/sitemaps/domains/site.example.com/sitemap.xml and a fresh install served it at /sitemap.xml until regenerated. priv/static/sitemap.xml and priv/static/sitemaps/ are now excluded.
  • A row menu patched while open shows the server’s current items — an action the server stopped offering (“Retry” once an extraction succeeds) could still be clicked from the stale copy. Keyboard focus stays on the item in the same slot across the swap.
  • bulk_select_scope’s swap doc now states the target must hand style to the client (JS.ignore_attributes(["style"])), or a patch of the target alone un-hides it.

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