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: Does not support multiple icons #6034

Closed
maspetsberger opened this issue Jul 9, 2024 · 0 comments · Fixed by #6035
Closed

IconField: Does not support multiple icons #6034

maspetsberger opened this issue Jul 9, 2024 · 0 comments · Fixed by #6035
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@maspetsberger
Copy link
Contributor

Describe the bug

The IconField component allows putting an icon at the left (before) or right (after) an input component, but it does not support two icons, one at the left and one at the right side, such as:

    <IconField>
      <InputIcon class="pi pi-search" />
      <InputText v-model="value1" placeholder="Search" />
      <InputIcon class="pi pi-spinner" />
    </IconField>

The css selector to add the padding are .p-iconfield .p-inputtext:last-child and :first-child respectively, which will not match when 2 icons are used around the input.

Reproducer

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

PrimeVue version

4.0.0

Vue version

4.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@maspetsberger maspetsberger 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 9, 2024
@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 Jul 22, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.0.1 milestone Jul 22, 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

Successfully merging a pull request may close this issue.

2 participants