nextui icon indicating copy to clipboard operation
nextui copied to clipboard

[BUG] - Input's label overlapping with autofilled data from Chrome's password manager

Open Qrysto opened this issue 7 months ago • 5 comments

HeroUI Version

2.8.0-beta.6

Describe the bug

On Chrome, when I have some credentials saved in Chrome's password manager, the browser may prefill the input content for me. But for the HeroUI's Inputs with labelPlacement being inside or outside without placeholder, the label is initially placed in the middle of the Input, overlapping with the prefilled data. See the screenshot below.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Create a login page using HeroUI Input components, with name attributes like email and password.
  2. Open the login page on Chrome.
  3. Submit the form so that Chrome suggests saving the credentials.
  4. Accept Chrome's prompt to save credentials.
  5. Open the login page again, Chrome will prefill the Input components and it will overlap with the Input labels.

Expected behavior

HeroUI Input should be able to detect when an Input is prefilled and adjust its label position accordingly.

Screenshots or Videos

Image

Operating System Version

Windows 11

Browser

Chrome

Qrysto avatar May 28 '25 10:05 Qrysto

please provide a minimal reproducible sandbox so that we could investigate your setup.

wingkwong avatar May 28 '25 10:05 wingkwong

hey @wingkwong i needed assistance i wanted to improve UI of landing page for that i intend to write light and dark mode code the problem that i am encountering is where is light and dark mode color pallete defined ? for example in apps/docs/app/layout.tsx there is property bg-background which applies background-color: hsl(var(--heroui-background) / var(--heroui-background-opacity, var(--tw-bg-opacity))); but in what file is --heroui-background defined ?

SinghAstra avatar May 28 '25 23:05 SinghAstra

Yo también tengo ese problema

jose-matisen avatar Jun 02 '25 15:06 jose-matisen

Im also having this issue with any value and any input. It has nothing related to Chrome's password manager.

Oputo50 avatar Jun 04 '25 22:06 Oputo50

Hello, I'm experiencing the same issue with the version compatible with Tailwind CSS v4.

HeroUI Version: 2.8.0-beta.6

Is there any update or fix planned for this?

Thanks in advance!

Image

jvera852 avatar Jun 17 '25 03:06 jvera852

Hola, que tal, yo pude solucionarlo borrando la carpeta node_modules y colocando el comando npx heroui-cli@latest upgrade --all --beta

Tengo estas versiones "@heroui/react": "^2.8.0-beta.7", "@heroui/system": "^2.4.17-beta.0", "@heroui/theme": "^2.4.17-beta.0", "tailwindcss": "^4.1.8"

jose-matisen avatar Jun 17 '25 21:06 jose-matisen

Same issue. Just using the Input, latest stable version. "autocomplete" is set to "username" and "password" in this screen shot.

Image

mighty6ft5max avatar Jun 30 '25 01:06 mighty6ft5max

Image

I’m having an issue with TailwindCSS v4

"@heroui/react": "2.8.0-beta.11" "@heroui/input": "^2.4.22"

joetakara avatar Jul 02 '25 13:07 joetakara

@joetakara @heroui/input@^2.4.22 is not compatible with TW4 . You may either import Input from @heroui/[email protected] or just @heroui/[email protected].

wingkwong avatar Jul 02 '25 15:07 wingkwong