-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
collapse use on flex rows doesn't restore display property correctly when expanded #20442
Comments
Hi @os1r1s110 I had a look at the code that you posted. I've found that it's usually best to wrap the entire element that needs to be collapsed in a dedicated Here is code that should make this work for you as you intend. Let me know if this solves your issue. https://codepen.io/judetucker/pen/RRYxzj |
Hi @judetucker! You appear to have posted a live example (https://codepen.io/judetucker/pen/RRYxzj.html), which is always a good first step. However, according to Bootlint, your example has some Bootstrap usage errors, which might potentially be causing your issue:
You'll need to fix these errors and post a revised example before we can proceed further. (Please note that this is a fully automated comment.) |
Hi @judetucker, this effectively seems to fix the issue. The only thing is I don't know if we should correct it in another way to take into account those who might use rows in a non-dedicated way... I never came across a documentation part which would mention that rows must be in a dedicated div, but that might be the case and if it is, then I'll be pleased to follow this guideline in the future. Else it could be good to specify that if not used separately from other classes, it may cause issues. The solution I came up with was to reset style correctly to "display:flex" instead of "display:block" in _animation.scss, line ~10, changing
}` to:
}` |
Don't know why the code doesn't display correctly.... the quote is misplaced or what? |
@os1r1s110 it is definitely best practice for simplicity / clean code sake. I do believe that your proposed solution would work, but it might be too much of an edge case to merge into the project. I'll defer to the core team on that one. Best of luck. |
@judetucker No problem if it's considered too edgy then I'll just use rows in separate divs and call it a day :P But I think it could/should be noted somewhere in the docs to make it clear that if rows are not used separately, it might cause weird issues as this one. |
Just to know, why putting the js label on it? Wouldn't it be easier to make the fix in css? Or you prefer correcting the js to change class for flex vs standard display mode? |
JS label indicates one or more of our JS plugins are involved—the collapse plugin, in this case. I don't think I'm going to change the |
Okay so the title may not be as clear as it could but here's the problem description:
See this problem on codeply: http://codeply.com/go/8WVm4PQBhF
Operating system: Windows 10
Browsers: Chrome 52.0.2743.82, Edge 25.10586.0.0
I'm not sure if this is intended or if it's a real issue so I'm awaiting your feedback before submitting a PR for this.
The text was updated successfully, but these errors were encountered: