Panel: Make sure active state is applied and removed to buttons in header too. Fixes #5583.
Merge pull request #5588 from jquery/fix-5583

Panel: Make sure active state is applied to and removed from buttons in header too.