Temporary patch for togglePanel() method until we upgrade to the next version of core-elements