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

input-group - Label is on top of the placeholder #15144

Closed
desig9stein opened this issue Dec 5, 2024 · 0 comments
Closed

input-group - Label is on top of the placeholder #15144

desig9stein opened this issue Dec 5, 2024 · 0 comments
Assignees
Labels

Comments

@desig9stein
Copy link
Contributor

desig9stein commented Dec 5, 2024

Description

Binding a dynamic value to the native input's placeholder within the igx-input-group does not trigger change detection. As a result, the igx-input-group fails to update or adjust its classes dynamically, leading to incorrect or missing styling updates.

This is true for the textarea as well

  • igniteui-angular version:
  • browser: all

Steps to reproduce

Bind to the native input placeholder
for example

[attr.placeholder]="properties.placeholder"

Result

The label goes on top of the placeholder

Expected result

The label should be on top of the placeholder like it is when the input has an actual value

Possible solutions

.TS - The cases igx-input-group--placeholder should be dynamically added/removed
.CSS - Another possible solution is to use a :placeholder-shown selector.

Attachments

Screen.Recording.2024-12-05.at.17.35.08.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants