Bootstrap 4/jQuery expand/collapse oddity
Hello, all,
I have been working on a blog project, and with a few minor instances of troubleshooting it has been a pretty smooth job. But I just discovered something odd about an expand/collapse that I have coded; it's nothing major, it's just a minor annoyance for someone as pedantic as I am/can be.
There is a header called "Archive" that has a plus sign on the right. When you click it, a div expands that shows years and the plus turns into a minus via jQuery.

Then, click a year to display months in which at least one blog entry was submitted.

Then click a month to display titles for entered blog posts.

But, if you click a month to collapse the month, the minus in the header turns into a plus.

Okay, so, Bootstrap is handling the expand/collapse, I just use classes on the elements, and BAM, done. (Thanks, Bootstrap!)
But I'm using jQuery to change the plus/minus, and only on the primary div via "shown.bs.collapse" and "hidden.bs.collapse". So, when I collapse a month or year, it should not affect the header indicator. Unless I misunderstand and $('#archiveDiv') affects all child elements, too.
Anyone have any insight into why this is happening? I can provide some code, if that helps.
V/r,
^ _ ^
