Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasks plugin removes data-task value #41

Closed
zolrath opened this issue Apr 26, 2021 · 2 comments
Closed

Tasks plugin removes data-task value #41

zolrath opened this issue Apr 26, 2021 · 2 comments
Labels
type: bug Something isn't working
Milestone

Comments

@zolrath
Copy link

zolrath commented Apr 26, 2021

On the Insider Build of Obsidian the value of a tasks checkbox is available in the data-task attribute of the list item.

- [x] Task 1
- [>] Deferred task

<li data-line="0" data-task="x" class="task-list-item is-checked">
<li data-line="1" data-task=">" class="task-list-item is-checked">

but with the Tasks plugin active this attribute no longer populates.

Noticed this when the custom CSS that relies on this behavior did not work: https://github.com/deathau/obsidian-snippets#checkboxes

@schemar schemar added this to the 1.0.0 milestone Apr 26, 2021
@schemar schemar added the type: bug Something isn't working label Apr 26, 2021
@schemar
Copy link
Collaborator

schemar commented Apr 26, 2021

Oops, I totally disregarded that. This is high priority. I will make sure this is added again before version 1.0.0. Stock obsidian behavior should remain as-is, of course.

Thank you for reporting it!

@schemar
Copy link
Collaborator

schemar commented Apr 26, 2021

Fixed in bugfix release 0.6.1

sytone referenced this issue in sytone/obsidian-tasks May 13, 2022
Obsidian adds the task's status character to the `data-task` attribute
of an LI. Do the same to keep compatibility with obsidian and other
plugins and snippets.

Fixes #41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants