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

IconField: Doesn't work with InputNumber #6015

Open
slavco86 opened this issue Jul 5, 2024 · 3 comments
Open

IconField: Doesn't work with InputNumber #6015

slavco86 opened this issue Jul 5, 2024 · 3 comments
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@slavco86
Copy link

slavco86 commented Jul 5, 2024

Describe the bug

IconField does not work when used together with InputNumber due to how InputNumber is structured, wrapping the input

Reproducer

https://stackblitz.com/edit/zwobe8?file=src%2FApp.vue

PrimeVue version

3.51.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

Go to repro link and observer the difference in rendering between using NumberInput and TextInput

Expected behavior

Should support using IcondField with NumberInput the same way as it does for TextInput

@slavco86 slavco86 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jul 5, 2024
@Lerwox
Copy link

Lerwox commented Oct 4, 2024

+1

@WatCodeDatCode
Copy link
Contributor

I added a potential fix that the core team can better evaluate, but as you pointed out the markup causes the issue given the theme adding the extra padding only when the input field is a direct ancestor. If not done so already, you should be able to override with a similar CSS rule locally.

@james-onpoint
Copy link

+1, really want this!

@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Nov 13, 2024
@tugcekucukoglu tugcekucukoglu added this to the 3.54.0 milestone Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

5 participants