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

bug(mat-form-field): placeholder and mat-label are overlaping #13479

Closed
julianobrasil opened this issue Oct 7, 2018 · 1 comment · Fixed by #13480
Closed

bug(mat-form-field): placeholder and mat-label are overlaping #13479

julianobrasil opened this issue Oct 7, 2018 · 1 comment · Fixed by #13480
Assignees
Labels
P4 A relatively minor issue that is not relevant to core functions

Comments

@julianobrasil
Copy link
Contributor

julianobrasil commented Oct 7, 2018

Bug, feature request, or proposal:

When you double click a disabled input with both mat-label and placeholder they overlap.

record_2018_10_07_09_18_16_254

What is the expected behavior?

They shouldn't overlap

What is the current behavior?

When you double click a disabled input with both mat-label and placeholder they overlap.

What are the steps to reproduce?

https://stackblitz.com/edit/angular-material-placeholder-problems?file=app%2Fform-field-overview-example.html

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

It's pretty common that the user tries to click/double click on a disabled input to make shure that he/she is really unable to interact with it.

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

I tested it with Google Chrome and Material 6.4.7

Is there anything else we should know?

I also tried to use the deprecated mat-placeholder, but it fails to work with interpolation when it's used together with mat-label. Otherwise it behaves as expected.

@julianobrasil julianobrasil changed the title but(mat-form-field): placeholder and mat-form-field are overlaping but(mat-form-field): placeholder and mat-label are overlaping Oct 7, 2018
@julianobrasil julianobrasil changed the title but(mat-form-field): placeholder and mat-label are overlaping bug(mat-form-field): placeholder and mat-label are overlaping Oct 7, 2018
@crisbeto crisbeto self-assigned this Oct 7, 2018
@crisbeto crisbeto added has pr P4 A relatively minor issue that is not relevant to core functions labels Oct 7, 2018
crisbeto added a commit to crisbeto/material2 that referenced this issue Oct 7, 2018
… disabled input

Prevents the users from being able to select the hidden placeholder text by double-clicking on a disabled input.

Fixes angular#13479.
crisbeto added a commit to crisbeto/material2 that referenced this issue Nov 11, 2018
… disabled input

Prevents the users from being able to select the hidden placeholder text by double-clicking on a disabled input.

Fixes angular#13479.
andrewseguin pushed a commit that referenced this issue Nov 14, 2018
… disabled input (#13480)

Prevents the users from being able to select the hidden placeholder text by double-clicking on a disabled input.

Fixes #13479.
josephperrott pushed a commit that referenced this issue Nov 19, 2018
… disabled input (#13480)

Prevents the users from being able to select the hidden placeholder text by double-clicking on a disabled input.

Fixes #13479.
@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 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
2 participants