Skip to content

fix(admin): Fixes broken checkboxes on the comments moderation page - #956

Merged
ascorbic merged 3 commits into
emdash-cms:mainfrom
CacheMeOwside:fix/557
May 8, 2026
Merged

ascorbic merged 3 commits into
emdash-cms:mainfrom
CacheMeOwside:fix/557

Conversation

@CacheMeOwside

@CacheMeOwside CacheMeOwside commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Closes #557

The issue

Broken checkboxes on the Comments moderation page (/_emdash/admin/comments). Clicking a checkbox threw a JS error and did not toggle the row, making bulk actions toolbar never appear.

Uncaught TypeError: Cannot set property target of #<Event> which has only a getter
    at Object.assign (<anonymous>)
    at Object.onCheckedChange (@cloudflare_kumo.js:4043:32)
CleanShot.2026-05-08.at.20.42.05.mp4

Per-row actions were unaffected.

The fix

  • Used Kumo's onCheckedChange prop instead of onChange. Kumo runs the broken event-conversion code when onChange is used, so this avoids it entirely. No behaviour change for our handlers
  • Added a regression test that clicks the row and select-all checkboxes and asserts the bulk action bar appears.
CleanShot.2026-05-08.at.20.27.49.mp4

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool:

@changeset-bot

changeset-bot Bot commented May 8, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fbea883

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@emdash-cms/admin Patch
emdash Patch
@emdash-cms/cloudflare Patch
@emdash-cms/fixture-perf-site Patch
@emdash-cms/perf-demo-site Patch
@emdash-cms/cache-demo-site Patch
@emdash-cms/auth Patch
@emdash-cms/blocks Patch
@emdash-cms/gutenberg-to-portable-text Patch
@emdash-cms/x402 Patch
create-emdash Patch
@emdash-cms/auth-atproto Patch
@emdash-cms/plugin-embeds Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented May 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@956

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@956

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@956

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@956

emdash

npm i https://pkg.pr.new/emdash@956

create-emdash

npm i https://pkg.pr.new/create-emdash@956

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@956

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@956

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@956

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@956

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@956

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@956

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@956

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@956

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@956

commit: fbea883

@ascorbic ascorbic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ascorbic
ascorbic merged commit 54b5aa1 into emdash-cms:main May 8, 2026
29 checks passed
@emdashbot emdashbot Bot mentioned this pull request May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comments page: checkboxes broken due to Kumo Checkbox bug

2 participants