Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate id's on md-input #320

Closed
matthewdenobrega opened this issue Apr 18, 2016 · 1 comment · Fixed by #450
Closed

Duplicate id's on md-input #320

matthewdenobrega opened this issue Apr 18, 2016 · 1 comment · Fixed by #450
Labels
P2 The issue is important to a large percentage of users, with a workaround
Milestone

Comments

@matthewdenobrega
Copy link
Contributor

matthewdenobrega commented Apr 18, 2016

Note: for support questions, please use one of these channels:
https://github.com/angular/material2/blob/master/CONTRIBUTING.md#question.
This repository's issues are reserved for feature requests and bug reports.

  • Do you want to request a feature or report a bug?
    Report a bug
  • What is the current behavior?
    The id attribute of an md-input is copied onto the inner input element, which results in duplicate id's on the page.
  • If the current behavior is a bug,
    please provide steps to reproduce and if possible a minimal demo of the problem

    via https://plnkr.co or similar.
  • What is the expected behavior?
    This is as per the design document - 'The id will be transferred to the native input element.' - however because the original element also has the id, this results in duplicate id's on the page. The internal input id should be modified to avoid this.
  • What is the motivation / use case for changing the behavior?
    Current behavior is not compliant with the HTML spec
  • Which version of Angular and Material, and which browser and OS does this issue affect?
    Did this work in previous versions of Angular / Material?
    Please also test with the latest stable and snapshot versions.
    Tested on 2.0.0.alpha-2 in Chrome
  • Other information
    (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix)
    I've sketched a possible solution in fix(input): prefix copied input id #321
@jelbourn jelbourn added the P2 The issue is important to a large percentage of users, with a workaround label Apr 18, 2016
@jelbourn jelbourn added this to the alpha.4 milestone Apr 18, 2016
@jelbourn jelbourn modified the milestones: alpha.4, alpha.5 May 12, 2016
andrewseguin added a commit to andrewseguin/components that referenced this issue Oct 15, 2018
* fix guides references

* revert elevation guide
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2 The issue is important to a large percentage of users, with a workaround
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants