Fix animation issue with ExpansionPanel
I think it is better to keep the default margin on the same value as in the design guidelines. If more spacing is needed, it can be configured though.
The expanded value did not behave as expected anymore because whenever this.expanded was true, it stayed at that value.
This fix makes that this.expanded
gets updated whenever expanded
of the attributes is not undefined.