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

Indeterminate checkbox property #119

Merged
merged 2 commits into from
May 26, 2020

Conversation

mantoni
Copy link
Contributor

@mantoni mantoni commented May 21, 2020

The HTML living standard defines the indeterminate property for checkboxes. It cannot be set using an HTML attribute though, only through JavaScript. Currently, the choo DOM diffing does not respect this property.

I have added test cases for the checkbox and disabled properties as a separate commit, since I expected them to behave similar to indeterminate. However, attempting to allow setting the property like <input type="checkbox" indeterminate=${false}> does not do the expected thing and would still set the property to true.

Refs:

Copy link
Member

@goto-bus-stop goto-bus-stop left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@goto-bus-stop goto-bus-stop merged commit f5cfb73 into choojs:master May 26, 2020
@goto-bus-stop
Copy link
Member

📦 5.4.1

@mantoni mantoni deleted the indeterminate-checkbox-state branch May 26, 2020 12:58
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.

3 participants