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

2.4版本的垂直按钮组表现异常 #644

Closed
chaozh opened this issue Jun 28, 2015 · 2 comments
Closed

2.4版本的垂直按钮组表现异常 #644

chaozh opened this issue Jun 28, 2015 · 2 comments

Comments

@chaozh
Copy link

chaozh commented Jun 28, 2015

想结合垂直按钮组和单选按钮使用,结果点击其他按钮后,原按钮仍处于激活状态,而所有input[radio]的状态也没有发生改变。难道是本来就不支持垂直按钮组?

@minwe
Copy link
Contributor

minwe commented Jun 29, 2015

<div class="am-btn-group am-btn-group-stacked" data-am-button>
    <label class="am-btn am-btn-primary">
    <input type="radio" name="options" value="选项 1" id="option1"> 选项 1
  </label>
  <label class="am-btn am-btn-primary">
    <input type="radio" name="options" value="选项 2" id="option2"> 选项 2
  </label>
  <label class="am-btn am-btn-primary">
    <input type="radio" name="options" value="选项 3" id="option3"> 选项 3
  </label>
  <label class="am-btn am-btn-primary am-disabled">
    <input type="radio" name="options" value="选项 4" id="option4"> 选项 4
  </label>
</div>

.am-btn-group 也加上。

@minwe minwe added this to the v2.4.1 milestone Jun 29, 2015
@minwe minwe closed this as completed in cb7d4ee Jun 29, 2015
minwe added a commit that referenced this issue Jun 29, 2015
[improved] resolves #644, Button not works with stacked group
@chaozh
Copy link
Author

chaozh commented Jun 29, 2015

恩,果然解决啦
谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@chaozh @minwe and others