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

When I set 2 data-targets to an toggle-button containing data-toggle="collapse", class collapsed cannot be added properly after the button is actived. #21482

Closed
zhou9197 opened this issue Dec 31, 2016 · 2 comments
Labels

Comments

@zhou9197
Copy link

zhou9197 commented Dec 31, 2016

As title,

  1. if I set one object (#sidebar) to data-target, class collapsed will be added after I click the button.
2. if I set two objects (#sidebar, #content) to data-target, class collapsed will **_NOT_** be added after I click the button. 3. why I set 2 data-targets. class 'in' will be toggled to #sidebar, #content, with which I toggle the sidebar and reset the margin-left of #content using css .XX.in{display:xx; margin-left:xx} 4. why I need class 'collapse' for toggle button I'd like to use css .collaspse.glyphicon-indent-right{content: '\XXX'} to toggle glyphicon-right or left 5. Could you help to provide any method that meets my need without any additional javascript?
@mdo
Copy link
Member

mdo commented Dec 31, 2016

Duplicate report of #17643 I think, at least for v4.

@mdo mdo closed this as completed Dec 31, 2016
@zhou9197
Copy link
Author

zhou9197 commented Jan 1, 2017

hi bro
I am using bootstrap v3 not v4. And both targets can be toggled. That's not the question I ask about.
I mean collapse in can be added and removed to the toggleE but collapseD can not be added to toggleR if I set 2 data-targets like #navbar #content. However the toggleR can be toggled with class collapseD if I set only one data-target. It is not the same issue with #17643. Did you misunderstand me?

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

No branches or pull requests

2 participants