Skip to content

Task-list checkboxes now stay clickable when an editor transitions…#308

Merged
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync
Jun 26, 2026
Merged

Task-list checkboxes now stay clickable when an editor transitions…#308
inkeep-oss-sync[bot] merged 1 commit into
mainfrom
copybara/sync

Conversation

@inkeep-oss-sync

Copy link
Copy Markdown
Contributor

Task-list checkboxes now stay clickable when an editor transitions from read-only to editable. The list-item NodeView set the checkbox's disabled state once at creation from editor.isEditable, but a setEditable() flip updates the view's editable flag without a document change, so ProseMirror never re-renders the NodeView and the stale disabled was never cleared. A checkbox created while the editor was read-only (for example, content loaded before the editor goes live) stayed permanently uncheckable. The NodeView now keeps disabled in sync with editability via the editor's update event (which setEditable() emits) and on every NodeView update.

* fix(core): keep task-item checkbox disabled state in sync with editability

The ListItem NodeView set checkbox.disabled once at creation from
editor.isEditable. A pure setEditable() flip updates view.editable without a
doc change, so ProseMirror never calls the NodeView's update() — a checkbox
created while the editor was read-only (e.g. seed content injected before the
hero editor goes live) stayed disabled forever, so it couldn't be checked.

Sync disabled with editor.isEditable on the 'update' event (emitted by
setEditable) and in update(), and remove the listener in destroy().

* chore: changeset for task-checkbox editability fix

---------

GitOrigin-RevId: e8327374a503cd677f82d5665ea2bf6598d07e5c

@inkeep-internal-ci inkeep-internal-ci Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated approval from agents-private public-mirror-sync (run: https://github.com/inkeep/agents-private/actions/runs/28215618355). Source of truth is the monorepo; direct edits on inkeep/open-knowledge are overwritten on next sync.

@inkeep-oss-sync inkeep-oss-sync Bot merged commit cb0b59b into main Jun 26, 2026
@inkeep-oss-sync inkeep-oss-sync Bot deleted the copybara/sync branch June 26, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant