<p dir="auto">The code for data-toggle="buttons" doesn't listen for change events. If the underlying radio/checkbox is changed by other code and fires a change event the .active class remains as-is.</p>
<p dir="auto">Maybe I'm doing something wrong, but when I use the btn-group with the radio input type and then set the input checked value, the toggle button state doesn't become active.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;btn-group&quot; data-toggle=&quot;buttons&quot;&gt;
    &lt;label class=&quot;btn btn-primary&quot;&gt;
        &lt;input type=&quot;radio&quot; name=&quot;options&quot; id=&quot;option1&quot;&gt; Option 1
    &lt;/label&gt;
    &lt;label class=&quot;btn btn-primary&quot;&gt;
        &lt;input type=&quot;radio&quot; name=&quot;options&quot; id=&quot;option2&quot;&gt; Option 2
    &lt;/label&gt;
    &lt;label class=&quot;btn btn-primary&quot;&gt;
        &lt;input type=&quot;radio&quot; name=&quot;options&quot; id=&quot;option3&quot;&gt; Option 3
    &lt;/label&gt;
&lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="btn-group" data-toggle="buttons"&gt;
    &lt;label class="btn btn-primary"&gt;
        &lt;input type="radio" name="options" id="option1"&gt; Option 1
    &lt;/label&gt;
    &lt;label class="btn btn-primary"&gt;
        &lt;input type="radio" name="options" id="option2"&gt; Option 2
    &lt;/label&gt;
    &lt;label class="btn btn-primary"&gt;
        &lt;input type="radio" name="options" id="option3"&gt; Option 3
    &lt;/label&gt;
&lt;/div&gt;
</code></pre></div>
<p dir="auto">And here's the script.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$('#option1').prop('checked', true);"><pre class="notranslate"><code class="notranslate">$('#option1').prop('checked', true);
</code></pre></div>
<p dir="auto">Should I expect that the button's data-toggle would be subscribed to the input checked state changing and update it's active state?</p>