我在一个基于VueJS的项目中有以下的bootstrap按钮组...
我想做的就是在单选按钮被选中/勾选时调用一个方法。
但是点击事件从未触发。我不确定它是否被Bootstrap CSS抑制了。
有什么想法吗?
<div class="btn-group btn-group-xs pull-right" data-toggle="buttons">
<label class="btn btn-primary label-primary">
<input type="radio" name="options" id="option1" autocomplete="off" v-on:click="clearEntries"> A
</label>
<label class="btn btn-primary label-primary">
<input type="radio" name="options" id="option2" autocomplete="off" v-on:click="clearEntries"> B
</label>
<label class="btn btn-primary active label-primary">
<input type="radio" name="options" id="option3" autocomplete="off" checked v-on:click="clearEntries"> C
</label>
<label class="btn btn-primary label-primary">
<input type="radio" name="options" id="option4" autocomplete="off" v-on:click="clearEntries"> D
</label>
</div>
但是点击事件从未触发。我不确定它是否被Bootstrap CSS抑制了。
有什么想法吗?