Skip to content

Fix: Compute the task list item index correctly. #26

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

Merged
merged 2 commits into from
Aug 4, 2021
Merged

Conversation

chanakyabhardwajj
Copy link
Contributor

@chanakyabhardwajj chanakyabhardwajj commented Jul 29, 2021

Fixes #25

Problem

If a task list contained elements other than task list items (for example <a>) then the position of the checked/unchecke task list item was being calculated incorrectly.

Fix

The position of a task list item should be computed using only other task list items (and ignoring any other elements).

Co-authored-by: Kristján Oddsson <koddsson@gmail.com>
@chanakyabhardwajj
Copy link
Contributor Author

@koddsson Could you please review again?

@chanakyabhardwajj chanakyabhardwajj requested a review from a team August 4, 2021 08:56
@chanakyabhardwajj
Copy link
Contributor Author

@github/web-systems-reviewers I would appreciate if you could review this PR.

@koddsson
Copy link
Contributor

koddsson commented Aug 4, 2021

Sorry, this wasn't showing up in the first responder queue because the reviewer's team wasn't requested. It is now, but I'll take this on.

Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me ✨

@koddsson koddsson merged commit f802bef into main Aug 4, 2021
@koddsson koddsson deleted the fix-bug-25 branch August 4, 2021 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anchor tag in the markup corrupts the position calculations.
2 participants