Skip to content

Anchor tag in the markup corrupts the position calculations. #25

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

Closed
chanakyabhardwajj opened this issue Jul 29, 2021 · 0 comments · Fixed by #26
Closed

Anchor tag in the markup corrupts the position calculations. #25

chanakyabhardwajj opened this issue Jul 29, 2021 · 0 comments · Fixed by #26
Labels
bug Something isn't working

Comments

@chanakyabhardwajj
Copy link
Contributor

Steps to reproduce

  • Modify the index.html file in the example folder as shown below:
...
    <task-lists sortable>
      <ul class="contains-task-list">
        <a name="anchor" />    <!-- This is the change -->   
        <li class="task-list-item">
          <label>
            <input type="checkbox" class="task-list-item-checkbox" />
            Hubot
          </label>
        </li>
        <li class="task-list-item">
          <label>
            <input type="checkbox" class="task-list-item-checkbox" />
            Bender
          </label>
        </li>
      </ul>
    </task-lists>
...
  • Check/uncheck the checkboxes on the top. The item position is reported as -1.

Screenshot 2021-07-29 at 10 45 11

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

Successfully merging a pull request may close this issue.

1 participant