Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

select(select-header): md-input-container throws errors with multiple input elements #10342

Closed
@wosevision

Description

@wosevision

Actual Behavior:

  • What is the issue? *
    <md-input-container> throws error when more than one input is used inside it (expected behaviour, but –..) md-select's feature to contain another input as an md-select-header is rendered broken/inconsistent. Setups like the select-header in this example from the docs feature an input as the select header, which seems to work, but the header will not accept any of the md- inputs.
  • What is the expected behavior?
    To either reject all secondary inputs (for consistency's sake), or more preferably, to accept all secondary inputs when the component merits it (such as in the <md-select-header>.
    Pre-1.1.3, I was able to place an <md-checkbox> inside the header with only minor layout compensations to be made. Post-1.1.3, the same setup throws an error.

CodePen (or steps to reproduce the issue): *

  • CodePen Demo which shows your issue:
    http://codepen.io/wosevision/pen/VPQXPy
  • Details:
    Shows <md-select> with with setup described above, with pre-1.1.3 version. Includes link to 1.1.3 version for switching script src with; change script and select no longer works because of an error now thrown by ng-material.

Angular Versions: *

  • Angular Version:
    1.5.8
  • Angular Material Version:
    1.1.3

Additional Information:

  • Browser Type: *
    All
  • Browser Version: *
    All
  • OS: *
    All
  • Stack Traces:
Error: <md-input-container> can only have *one* child <input>, <textarea> or <select> element!
    at rawgit.com/angular/bower-material/master/angular-material.min.js:11

Metadata

Metadata

Assignees

Labels

a11yThis issue is related to accessibilitytype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions