diff options
| author | Chris Rebert <[email protected]> | 2014-07-23 18:01:31 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-07-23 18:01:31 -0700 |
| commit | c0eddc1fe30794f9de615acb364f09af36c83155 (patch) | |
| tree | c5f81bf3a5a40eeecf8ef9600620cad9438576ab /docs/_includes/js | |
| parent | 4a98e2d765df3c6a02a8282d942a99c1db6b8ae4 (diff) | |
| parent | 976441ac1bad923a718d9db355153954b067f01a (diff) | |
| download | bootstrap-c0eddc1fe30794f9de615acb364f09af36c83155.tar.xz bootstrap-c0eddc1fe30794f9de615acb364f09af36c83155.zip | |
Merge pull request #14188 from twbs/doc-14148
Document limitations of buttons JS plugin
Diffstat (limited to 'docs/_includes/js')
| -rw-r--r-- | docs/_includes/js/buttons.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/_includes/js/buttons.html b/docs/_includes/js/buttons.html index a0801b56c..a8f2ffc26 100644 --- a/docs/_includes/js/buttons.html +++ b/docs/_includes/js/buttons.html @@ -41,6 +41,10 @@ <h4>Pre-checked options need <code>.active</code></h4> <p>For pre-checked options, you must add the <code>.active</code> class to the input's <code>label</code> yourself.</p> </div> + <div class="bs-callout bs-callout-warning"> + <h4>Visual checked state only updated on click</h4> + <p>If the checked state of a checkbox button is updated without firing a <code>click</code> event on the button (e.g. via <code><input type="reset"></code> or via setting the <code>checked</code> property of the input), you will need to toggle the <code>.active</code> class on the input's <code>label</code> yourself.</p> + </div> <div class="bs-example" style="padding-bottom: 24px;"> <div class="btn-group" data-toggle="buttons"> <label class="btn btn-primary active"> @@ -74,6 +78,10 @@ <h4>Preselected options need <code>.active</code></h4> <p>For preselected options, you must add the <code>.active</code> class to the input's <code>label</code> yourself.</p> </div> + <div class="bs-callout bs-callout-warning"> + <h4>Visual checked state only updated on click</h4> + <p>If the checked state of a radio button is updated without firing a <code>click</code> event on the button (e.g. via <code><input type="reset"></code> or via setting the <code>checked</code> property of the input), you will need to toggle the <code>.active</code> class on the input's <code>label</code> yourself.</p> + </div> <div class="bs-example" style="padding-bottom: 24px;"> <div class="btn-group" data-toggle="buttons"> <label class="btn btn-primary active"> |
