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

Unexpected Behavior in Password Component Width and Icon Customization #7633

Open
myigituzun opened this issue Jan 21, 2025 · 0 comments · May be fixed by #7634
Open

Unexpected Behavior in Password Component Width and Icon Customization #7633

myigituzun opened this issue Jan 21, 2025 · 0 comments · May be fixed by #7634
Assignees
Labels
Component: Unstyled Issue related to unstyled/passthrough attributes

Comments

@myigituzun
Copy link
Contributor

myigituzun commented Jan 21, 2025

Describe the bug

I am using the Password component with the following configuration:

<Password value={value} onChange={(e) => setValue(e.target.value)} toggleMask className={'w-full'} />
1.	Expected Behavior: The password input field should expand to the full width of its container due to the className={'w-full'} property.

2.	Actual Behavior: The input field does not take up the full width of its container as expected. Here is the visual output:
Image
3.	Additional Feature Requests:
•	Custom Classes for Icons: I would like the ability to assign custom CSS classes to the “show” and “hide” icons used for toggling the password mask.
•	Callback for Icon Clicks: It would be helpful if clicking the toggle mask icons could trigger a callback function, allowing developers to execute custom logic.

Please let me know if further clarification or a reproducible repository is required. Thank you for your support!

Reproducer

No response

System Information

System:
    OS: macOS 15.2 (24C101)
    Chip: Apple M4 Pro
  Binaries:
    Node: 22.12.0
    yarn: 4.5.3
  Browsers:
    Brave: Version 1.74.48 Chromium: 132.0.6834.83 (Official Build)  (arm64)
  npmPackages:
    primereact: 10.9.1
    react: 19.0.0
    tailwindcss: 3.4.17

Steps to reproduce the behavior

No response

Expected behavior

No response

@myigituzun myigituzun added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 21, 2025
myigituzun added a commit to myigituzun/primereact that referenced this issue Jan 21, 2025
myigituzun added a commit to myigituzun/primereact that referenced this issue Jan 21, 2025
@melloware melloware added Component: Theme Issue or pull request is related to Theme Component: Unstyled Issue related to unstyled/passthrough attributes and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible Component: Theme Issue or pull request is related to Theme labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Unstyled Issue related to unstyled/passthrough attributes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants