Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/baseballyama/tiptap-tasklist-bug-repl
https://github.com/baseballyama/tiptap-tasklist-bug-repl
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/baseballyama/tiptap-tasklist-bug-repl
- Owner: baseballyama
- Created: 2024-07-18T08:34:24.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T10:41:22.000Z (5 months ago)
- Last Synced: 2024-11-11T04:51:57.252Z (about 1 month ago)
- Language: JavaScript
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This issue is fixed by https://github.com/ueberdosis/tiptap/pull/5366
## REPL steps
```shell
npm install
npm run dev
```## Bug description
After starting the dev server, you will see the following HTML.
![REPL](./repl.png)
The `HTML by getHTML` and `HTML by generateHTML` should be the same, but the data-checked value is different.
## How to solve this
Update [task-item.ts](https://github.com/ueberdosis/tiptap/blob/develop/packages/extension-task-item/src/task-item.ts#L70) as follows:
```diff
- 'data-checked': attributes.checked
+ 'data-checked': attributes.checked ? 'true' : undefined
```