Accordion wont apply panel-open class when initially opened and custom class binding is used #4849

Description
I use the accordion with dynamic class names. I'm using angular bindings for this. As in current version this is not supported via ng-class
and the panel-class
attribute is only evaluated once, I have to use the standard class
attribute. So I do sth like this:
<accordion-group class={{customClass}} is-open="true"></accordion-group>
Where {{customClass}}
will be replaced by "myCustomClass"
. When the is-open
attribute is set by default and I navigate to the page with the accordion, the class attribute evaluates to:
<accordion-group class="myCustomClass panel panel-default panel panel-default" is-open="true"></accordion-group>
But "panel-open"
will only be applied if I close and reopen the affected group. You may look this up here and check the class value via debugger (I've just added a constant class="testClass"
in my example as the result is the same):