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

Autofill is breaking floating-label positioningComponent: Title #15544

Open
BlackstarSoon opened this issue May 13, 2024 · 1 comment
Open

Autofill is breaking floating-label positioningComponent: Title #15544

BlackstarSoon opened this issue May 13, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@BlackstarSoon
Copy link

BlackstarSoon commented May 13, 2024

Describe the bug

When (chrome) autofill happens, the label is not floating above the input field, unless any interaction on the page has taken place.
image

Environment

Windows 11, Chrome and Edge browser

Reproducer

No response

Angular version

16.2.1

PrimeNG version

16.3.1

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Take any form input field with a floating label styles as proposed in https://www.primefaces.org/primeng-v16-lts/inputtext
  2. Have autofill data in your browser
  3. Load the page

Expected behavior

Label should be immediately above the input field after page load.

As issue happened in previous version, this currently can be fixed when added the below selector to the label styling
.p-float-label textarea:-webkit-autofill ~ label, .p-float-label input:-webkit-autofill ~ label

@BlackstarSoon BlackstarSoon added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 13, 2024
@BlackstarSoon
Copy link
Author

The fixes that I used is based on this reported ticket
#5472

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant