Skip to content

Button plugin doesn't apply "checked"-attribute to checkbox/radio button #18866

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
Studio384 opened this issue Jan 12, 2016 · 2 comments
Closed
Labels

Comments

@Studio384
Copy link

The button example as described in the documentation (http://v4-alpha.getbootstrap.com/components/buttons/#checkbox-and-radio-buttons) doesn't apply the checked-attribute to the actual checkbox and only applies active to the button.

@patrickhlauke patrickhlauke changed the title Button plugins for checkbox doesn't apply "checked"-attribute to checkbox Button plugin doesn't apply "checked"-attribute to checkbox/radio button Jan 12, 2016
@patrickhlauke
Copy link
Member

Same problem also for the radio buttons that follow.

@patrickhlauke
Copy link
Member

Actually, on further analysis no browser ever changes the checked attribute in the DOM (even on vanillla checkboxes/radio buttons), so just doing something like "inspect element" and looking at the DOM, or querying with document.getElementById('option1').getAttribute('checked') or similar, will not show any change. It's the checked property that changes, however ... (e.g. document.getElementById('option1').checked), and this works properly with the button plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants