Skip to content
This repository was archived by the owner on Jun 16, 2019. It is now read-only.
This repository was archived by the owner on Jun 16, 2019. It is now read-only.

Expansion - allow select inside extended panel #1070

Description

@tb

When I have mdl-select or mdl-popover inside extended panel then we need overflow: visible.

ATM I was able to fix it via:

@Component({
  selector: 'mdl-expansion-panel-content',
  template: '<ng-content></ng-content>',
  host: {
    '[class.mdl-expansion-panel__content]': 'true',
    '[@isExpanded]': 'isExpanded'
  },
  animations: [
    trigger('isExpanded', [
      state('true', style({ height: '*', overflow: 'visible' })),
      state('false', style({ height: '0px', overflow: 'hidden' })),
      transition('* => *', animate('100ms ease-in')),
    ]),
  ]
})
export class MdlExpansionPanelContentComponent {
  isExpanded: string = 'false';
}

This solution requires however faster animation. I would expect to either:

  • support mdl-select in extension panels
  • or allow to configure component animations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions