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

v4 btn-group with data-toggle="buttons" eats events #20770

Closed
pg1671 opened this issue Sep 22, 2016 · 1 comment
Closed

v4 btn-group with data-toggle="buttons" eats events #20770

pg1671 opened this issue Sep 22, 2016 · 1 comment

Comments

@pg1671
Copy link

pg1671 commented Sep 22, 2016

With version 4 alpha 4 if you use a btn-group with data-toggle="buttons" any events fired cannot be handled outside the control.

The behaviour works correctly if you switch the v4 javascript for v3.

markup is:

<div class="btn-group" data-toggle="buttons">
    <label class="btn btn-primary active">
        <input type="radio" name="pricingperiod" id="monthly" autocomplete="off"> Monthly
    </label>
    <label class="btn btn-primary">
        <input type="radio" name="pricingperiod" id="yearly" autocomplete="off"> Annual
    </label>
</div>

I am using backbone events and am checking for a change:
"change input[type=radio]": "onPeriod"

Which never gets handled under v4 but does under v3.

@cvrebert
Copy link
Collaborator

Duplicate of #17599.

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