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

InputNumber: In combination with IconField, the contents overlaps with the icon #7310

Open
maartenflippo opened this issue Oct 6, 2024 · 1 comment
Labels
Component: Theme Issue or pull request is related to Theme Type: Bug Issue contains a defect related to a specific component.

Comments

@maartenflippo
Copy link

Describe the bug

When using IconField in combination with InputNumber, the icon overlaps with the contents of the input field.

I am not sure whether this is a bug, or whether IconField is only supposed to work with InputText, but if it is, then the documentation could make that clear.

If considered useful, I am willing to try to attempt a PR to fix this.

Reproducer

https://stackblitz.com/edit/vitejs-vite-vszvrs?file=src%2FApp.tsx

System Information

System:
    OS: Linux 5.0 undefined
    CPU: (2) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    primereact: ^10.8.3 => 10.8.3 
    react: ^18.3.1 => 18.3.1

Steps to reproduce the behavior

No response

Expected behavior

No response

@maartenflippo maartenflippo added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 6, 2024
@melloware
Copy link
Member

I bet its similar to Password which also has an internal input also and had issues: #6776

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Oct 6, 2024
@melloware melloware added the Component: Theme Issue or pull request is related to Theme label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Theme Issue or pull request is related to Theme Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants