Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/baseballyama/tiptap-tasklist-bug-repl


https://github.com/baseballyama/tiptap-tasklist-bug-repl

Last synced: 3 days ago
JSON representation

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
```