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

Vue v-model incompatible with Bootstrap 3 radio button group #559

Open
msmolens opened this issue May 8, 2018 · 0 comments
Open

Vue v-model incompatible with Bootstrap 3 radio button group #559

msmolens opened this issue May 8, 2018 · 0 comments

Comments

@msmolens
Copy link
Contributor

msmolens commented May 8, 2018

Binding data to radio inputs using Vue's v-model [1] is incompatible when the inputs are styled as a Bootstrap 3 radio button group [2].

This can be observed for the following radio button group in the annotation tool:

If Bootstrap's button.js is included in the script section (import 'bootstrap/js/button';), then the data binding no longer works: the certainty setter is not called when the buttons are toggled.

Note that since the script doesn't currently include button.js, the data-toggle='buttons' attribute has no effect.

[1] https://vuejs.org/v2/guide/forms.html#Radio
[2] https://getbootstrap.com/docs/3.3/javascript/#buttons-checkbox-radio

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

1 participant