Open odama626 opened 7 years ago
Hello,
Do you have an example to reproduce the step one ? In this way I can see the fix.
Sorry, I didn't see the reply until you closed it.
https://getbootstrap.com/docs/4.0/components/collapse/
bootstrap's collapse class hides content where as your collapse class shows content.
The conflict is the fieldsets classes in admin/entry.py https://github.com/Fantomas42/django-blog-zinnia/blob/develop/zinnia/admin/entry.py
and possibly other places, after having thought about it since creating the issue.
I fixed the issue personally by adding a second class 'in' and changing the css to be
.collapse.in { }
Not elegant in the least but it resolved the conflict in my particular situation.
Furthermore, I don't think this would be trivial to fix because it would be a breaking change for anyone that has extended the fieldsets.
Actual behavior
expanding fieldsets are set to display none
Expected behavior
open, close
I did some digging and found that it would be a really simple change (at least here) to get it compatible simply adding the 'in' class to each one of the field entries make it work as expected.
'classes': ('collapse', 'collapse-closed')}), to 'classes': ('collapse in', 'collapse-closed')}),
Steps to reproduce the issue
Specifications
I checked all three of your current branches, stylesheet collision would still occur
Disclaimer
Please read these questions carefully and answer honestly with an
x
into all the boxes[ ]
: