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

Dynamic changes to checkboxes don't seem to trigger a css 'refresh' #19

Open
hannesfostie opened this issue Jan 31, 2013 · 0 comments
Open

Comments

@hannesfostie
Copy link

Hi

I just built a select-all checkbox to check all other checkboxes in the form.

$('#select_all').on 'click', -> $('.checkbox-list input[type=checkbox]').prop('checked', $(this).prop('checked'))

The problem is that my styles are changing based on your parent selector:

label! > .has-access:checked { background: #e87d80; }

This works perfectly when checking only one checkbox. The options to make this work are firing a click event on each of them, or calling the cssParentSelector function but both are hacky and not very performant.

Any idea if this can be resolved at all? I was left scratching my head trying to figure it out myself.

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

No branches or pull requests

1 participant