Handle `collapsed` class on triggers even when manually invoked

Fixes #13636.
why didn't you put addAriaAndCollapsedClass on the class?