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

Invalid UI initialization when hidden #387

Closed
lorond opened this issue Nov 25, 2014 · 2 comments
Closed

Invalid UI initialization when hidden #387

lorond opened this issue Nov 25, 2014 · 2 comments
Assignees

Comments

@lorond
Copy link

lorond commented Nov 25, 2014

Switch version 3.2.2, lastest jQuery version

HTML:

<button id="toggle">Toggle container</button>
<div id="container">
    <input id="switch" type="checkbox" />
</div>

JavaScript:

<script type="text/javascript">
    $(function () {
        $('#container').toggle();
        $('#toggle').click(function () {
            $('#container').toggle();
        });

        $('#switch').bootstrapSwitch();
    });
</script>

Container is hidden. When we press toggle button, container becomes visible and we see that switch is ON. *BUG: * it must be OFF. His internal state is OFF. After pressing switch no visual changes. However internal state became ON. After that switch operates properly.

@lorond
Copy link
Author

lorond commented Nov 25, 2014

Seems to be duplicate of #376, #383, #378

@lorond lorond closed this as completed Nov 25, 2014
@LostCrew
Copy link
Member

@lorond indeed. thanks.

@LostCrew LostCrew self-assigned this Dec 21, 2014
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

2 participants