Commit Graph

6 Commits

Author SHA1 Message Date
kolaente c82e5fb235
fix: lint 2024-02-17 23:23:39 +01:00
kolaente e5e8e8d134
fix(editor): add unique ids to task list items 2024-02-17 23:15:27 +01:00
kolaente f120d72211
fix(editor): revert task list dependence on ids
continuous-integration/drone/push Build is failing Details
This partially reverts 3969f6ae66. Adding ids to task list items is not as simple and actually made it worse in some cases. Hence we stick to comparing the content of nodes for now, until this is properly fixed in tiptap.

Related #2091 (comment)
2024-02-17 23:13:51 +01:00
kolaente 32edef2d38
fix(editor): set default id of tasklist items
continuous-integration/drone/push Build is passing Details
This fixes a bug where all tasklist items would have the same id which would check all of them when checking one of them.
2024-02-17 11:38:20 +01:00
kolaente 3969f6ae66
fix(editor): ensure task list clicks are only fired once
Before this fix, clicking on a task list item with the same name as another one, both would get marked as done. This was due to the mechanism which walks the dom tree to look for the node to update used its content for comparison. To prevent this, this fix first added unique ids to all task list items and then compared the nodes based on their id instead of the content.

Resolves #2091
2024-02-14 14:13:03 +01:00
kolaente fc4676315d
chore: move frontend files 2024-02-07 14:56:56 +01:00