Skip to content

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

Closed
PathGao wants to merge 1 commit into
sftwrdotdev:fix/display-math-underscoresfrom
PathGao:fix/preview-checkbox-change-event
Closed

fix(preview): persist task checkbox changes#327
PathGao wants to merge 1 commit into
sftwrdotdev:fix/display-math-underscoresfrom
PathGao:fix/preview-checkbox-change-event

Conversation

@PathGao

@PathGao PathGao commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

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
Collaborator 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.

@PathGao
PathGao force-pushed the fix/preview-checkbox-change-event branch from fd5f46e to c627e7d Compare August 2, 2026 05:44
@PathGao
PathGao changed the base branch from master to fix/display-math-underscores August 2, 2026 05:45
@PathGao

PathGao commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator Author

Superseded by native Stack PR #352 (Stack #353). Closing this fork-head PR so #352 is the active review path.

@PathGao PathGao closed this Aug 2, 2026
@PathGao
PathGao deleted the fix/preview-checkbox-change-event branch August 2, 2026 08:34
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