Uh oh!
There was an error while loading. Please reload this page.
fix(material/checkbox): clear name from host node - #15368
Closed
crisbeto wants to merge 1 commit into
Closed
Conversation
crisbeto
requested review from
devversion, jelbourn and josephperrott
as code ownersMarch 2, 2019 18:01
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Mar 8, 2019
Along the same lines as angular#15368. Clears the `name` from the host node of the radio button and radio group, because they end up being forwarded to the underlying `input` and can cause double results when using something like `getElementsByName`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Mar 16, 2019
Along the same lines as angular#15422 and angular#15368. Clears the static `name` attribute from the slide toggle's host node in order to prevent both the underlying input and the host from showing up in `document.getElementsByName` or `By.name`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Mar 23, 2019
Along the same lines as angular#15422 and angular#15368. Clears the static `name` attribute from the slide toggle's host node in order to prevent both the underlying input and the host from showing up in `document.getElementsByName` or `By.name`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Mar 31, 2019
Along the same lines as angular#15368. Since we forward the `name` to the underlying native inside a button toggle, otherwise the results from `document.getElementsByName` or Protractor's `By.name` might be thrown off.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
May 4, 2019
Along the same lines as angular#15422 and angular#15368. Clears the static `name` attribute from the slide toggle's host node in order to prevent both the underlying input and the host from showing up in `document.getElementsByName` or `By.name`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
May 13, 2019
Along the same lines as angular#15368. Since we forward the `name` to the underlying native inside a button toggle, otherwise the results from `document.getElementsByName` or Protractor's `By.name` might be thrown off.
jelbourn pushed a commit
that referenced
this pull request
May 13, 2019
Along the same lines as #15368. Since we forward the `name` to the underlying native inside a button toggle, otherwise the results from `document.getElementsByName` or Protractor's `By.name` might be thrown off.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Jul 1, 2019
Along the same lines as angular#15368. Clears the `name` from the host node of the radio button and radio group, because they end up being forwarded to the underlying `input` and can cause double results when using something like `getElementsByName`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Jul 21, 2019
Along the same lines as angular#15422 and angular#15368. Clears the static `name` attribute from the slide toggle's host node in order to prevent both the underlying input and the host from showing up in `document.getElementsByName` or `By.name`.
crisbetoforce-pushed
the
checkbox-host-name
branch
from
September 15, 2019 16:59
b14f79b to
99b0f9bComparecrisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Oct 1, 2019
Along the same lines as angular#15368. Clears the `name` from the host node of the radio button and radio group, because they end up being forwarded to the underlying `input` and can cause double results when using something like `getElementsByName`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Nov 29, 2019
Along the same lines as angular#15422 and angular#15368. Clears the static `name` attribute from the slide toggle's host node in order to prevent both the underlying input and the host from showing up in `document.getElementsByName` or `By.name`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
May 2, 2020
Along the same lines as angular#15368. Clears the `name` from the host node of the radio button and radio group, because they end up being forwarded to the underlying `input` and can cause double results when using something like `getElementsByName`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Jun 7, 2020
Along the same lines as angular#15368. Clears the `name` from the host node of the radio button and radio group, because they end up being forwarded to the underlying `input` and can cause double results when using something like `getElementsByName`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Jan 10, 2021
Along the same lines as angular#15422 and angular#15368. Clears the static `name` attribute from the slide toggle's host node in order to prevent both the underlying input and the host from showing up in `document.getElementsByName` or `By.name`.
devversion
removed their request for review
August 18, 2021 12:55
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Mar 7, 2022
Along the same lines as angular#15422 and angular#15368. Clears the static `name` attribute from the slide toggle's host node in order to prevent both the underlying input and the host from showing up in `document.getElementsByName` or `By.name`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Mar 7, 2022
Along the same lines as angular#15368. Clears the `name` from the host node of the radio button and radio group, because they end up being forwarded to the underlying `input` and can cause double results when using something like `getElementsByName`.
forsti0506 pushed a commit
to forsti0506/components
that referenced
this pull request
Apr 3, 2022
Along the same lines as angular#15422 and angular#15368. Clears the static `name` attribute from the slide toggle's host node in order to prevent both the underlying input and the host from showing up in `document.getElementsByName` or `By.name`.
crisbeto added a commit
to crisbeto/material2
that referenced
this pull request
Aug 23, 2022
Along the same lines as angular#15368. Clears the `name` from the host node of the radio button and radio group, because they end up being forwarded to the underlying `input` and can cause double results when using something like `getElementsByName`.
Currently we forward the name attribute from the host node to the underlying input, however we leave the name on the host node intact. This can throw off functions like `document.getElementsByName` or the `By.name` Protractor selector.
crisbetoforce-pushed
the
checkbox-host-name
branch
from
February 28, 2024 08:18
99b0f9b to
ec1c6c4Comparecrisbeto
commented
Feb 28, 2024
MemberAuthor
Looks like this is really breaking internally. I'll close it for now since we haven't gotten any issue reports about it. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently we forward the name attribute from the host node to the underlying input, however we leave the name on the host node intact. This can throw off functions like
document.getElementsByNameor theBy.nameProtractor selector.