Skip to content

fix(preview): persist task checkbox changes - #327

Open
PathGao wants to merge 25 commits into
alecdotdev:masterfrom
PathGao:fix/preview-checkbox-change-event
Open

fix(preview): persist task checkbox changes#327
PathGao wants to merge 25 commits into
alecdotdev:masterfrom
PathGao:fix/preview-checkbox-change-event

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Preview checklist changes now follow the checkbox's committed state, so mouse, keyboard, and accessibility input all write the intended Markdown marker. The former click handler inferred a new state and could leave the file unchanged when the input provider had already updated the native control.

Fixes #148.

Validation

  • npm run check
  • npm test
  • cargo test
  • Built an isolated macOS Markpad PR Test.app; clicking a preview checkbox changed it from unchecked to checked and wrote - [x] to disk.

Merge order

This is the next commit in the current chain and should merge after #326.

@PathGao

PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Contributor Author

@alecdotdev This follows #326 in the current chain. I verified the fix in an isolated macOS release bundle: accessibility activation changed the preview checkbox and persisted - [x] to the opened file.

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.

Checklists no longer work in Preview mode.

1 participant