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

md-select label and placeholder remains visible even if container is set to hidden #4247

Closed
ffredsh opened this issue Apr 24, 2017 · 1 comment · Fixed by #4264
Closed

md-select label and placeholder remains visible even if container is set to hidden #4247

ffredsh opened this issue Apr 24, 2017 · 1 comment · Fixed by #4264
Assignees

Comments

@ffredsh
Copy link

ffredsh commented Apr 24, 2017

Bug, feature request, or proposal:

Bug

What is the expected behavior?

When setting 's visibility to hidden, the label and placeholder should be hidden.

What is the current behavior?

Placeholder and label remains visible even if md-select is set to hidden.

What are the steps to reproduce?

https://plnkr.co/edit/TSvAYJ0grLr9gfR8rKxV?p=preview

1). Press "Toggle Select Visibility"
2). Notice that the placeholder is still visible and can be interacted with.

1). Select a value
2). Toggle visibility
3). Label still remains visible.

What is the use-case or motivation for changing an existing behavior?

I use md-select in a form and hide it when making an API request. The labels remain in place and does not look good.

Which versions of Angular, Material, OS, browsers are affected?

Angular: 4.0.2
Material: 2.0.0-beta.3
OS: Ubuntu 14.04
Browser: Chrome

@crisbeto crisbeto self-assigned this Apr 25, 2017
crisbeto added a commit to crisbeto/material2 that referenced this issue Apr 25, 2017
Fixes not being able to hide a `md-select` instance through `visibility: hidden`.

Fixes angular#4247.
mmalerba pushed a commit that referenced this issue Apr 27, 2017
Fixes not being able to hide a `md-select` instance through `visibility: hidden`.

Fixes #4247.
@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 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants