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

Fix toggle-all input not being checked #38

Merged
merged 1 commit into from
May 2, 2021
Merged

Conversation

wjdnb
Copy link
Contributor

@wjdnb wjdnb commented Apr 29, 2021

Fix #37 .

When the new-todo input is selected, its z-index is greater than toggle-all input, resulting in the toggle-all input can't be checked.

So I removed changing the z-Index property when an element is selected.

@sindresorhus
Copy link
Member

Are you sure it's not needed for the other selectors?

@wjdnb
Copy link
Contributor Author

wjdnb commented Apr 30, 2021

Are you sure it's not needed for the other selectors?

Yes, this is my revised version.

https://codesandbox.io/s/todomvc-changed-2lfs4?file=/index.html

The change of z-index may cause some elements can't be selected. So I used this static page to test all the elements that can be clicked, and they can all be triggered normally.

@sindresorhus sindresorhus changed the title Fix toggle-all input can't be checked Fix toggle-all input not being checked May 2, 2021
@sindresorhus sindresorhus merged commit d99f196 into tastejs:master May 2, 2021
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.

toggle-all input can't be checked
2 participants