Automattic / Automattic/o2

Checklists are broken

Open
#167 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
338
Forks
56
Avg merge
24m
Merged PRs (30d)
16

Description

Create a post with checklist items:
![image](https://user-images.githubusercontent.com/1036685/54175970-0f82a680-444a-11e9-92f6-382a0ab45921.png)

It saves and renders without the checkboxes:
![image](https://user-images.githubusercontent.com/1036685/54175986-1b6e6880-444a-11e9-82b1-d001b2ca570c.png)

Then I reload the page:

![image](https://user-images.githubusercontent.com/1036685/54175997-2628fd80-444a-11e9-846f-b3b852d96a7c.png)

I complete a checklist item:
![image](https://user-images.githubusercontent.com/1036685/54176017-3e991800-444a-11e9-8304-94cdd559be37.png)

Then I reload the page:
![image](https://user-images.githubusercontent.com/1036685/54176031-4bb60700-444a-11e9-8617-f030f143ec3b.png)

If I complete another checklist item:
![image](https://user-images.githubusercontent.com/1036685/54176046-596b8c80-444a-11e9-8461-147fe1362404.png)

But then do not reload the page, I am left in a broken state, such as if I try to add another item (or delete one):
![image](https://user-images.githubusercontent.com/1036685/54176061-7902b500-444a-11e9-86c8-ab43a095210e.png)

I get this error:
![image](https://user-images.githubusercontent.com/1036685/54176071-83bd4a00-444a-11e9-85e9-aa2f0da87afb.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the checklist workflow in a WordPress post: create items, save, reload, complete items, and edit again without reloading. Trace the checklist editing and rendering path from the post editor, then verify that checkboxes persist through saves and reloads and that adding or deleting items no longer leaves the editor in an error state.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wordpress
Domain
content, frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.