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

Password: The element appears broken when toggleMask is activated and contained inside a "p-inputgroup" div element #6802

Open
meinhundgojko opened this issue Jun 27, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@meinhundgojko
Copy link

meinhundgojko commented Jun 27, 2024

Describe the bug

I have found a visual bug when using a Password component with toggleMask activated, and this element is contained inside a "p-inputgroup" div. I'm using slightly modified code from these examples: PrimeReact InputGroup. When using PrimeReact version 10.6.3 or newer, the Password component appears broken.
image

With version 10.6.2 or older, everything looks OK.
image

Reproducer

https://stackblitz.com/edit/stackblitz-starters-2j1uag

PrimeReact version

10.6.6

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

Use Primereact 10.6.3+ with this source code:

  <div>
    <div className="p-inputgroup flex-1">
      <span className="p-inputgroup-addon">
        <i className="pi pi-user"></i>
      </span>
      <InputText placeholder="Username" />
    </div>

    <div className="p-inputgroup flex-1">
      <span className="p-inputgroup-addon">$</span>
      <InputNumber placeholder="Price" />
      <span className="p-inputgroup-addon">.00</span>
    </div>

    <div className="p-inputgroup flex-1">
      <span className="p-inputgroup-addon">password</span>
      <Password toggleMask placeholder="password" />
    </div>
  </div>

Expected behavior

No response

@meinhundgojko meinhundgojko added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 27, 2024
@meinhundgojko meinhundgojko changed the title Password: The element appears broken when toggleMask is activated and contained inside a "p-inputgroup div" element Password: The element appears broken when toggleMask is activated and contained inside a "p-inputgroup" div element Jun 27, 2024
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