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

InputGroupAddon stopped working #5670

Closed
teoring opened this issue May 1, 2024 · 2 comments
Closed

InputGroupAddon stopped working #5670

teoring opened this issue May 1, 2024 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@teoring
Copy link

teoring commented May 1, 2024

Hello,

I don't know if this is known issue but when I updated from 3.47.0 to 3.52.0 my login form breaks.

This is how it looks on 3.47.0

image

And this is how it looks in 3.52.
image

Its a very simple code:

                    <InputGroup :class="{ 'p-invalid': emailErrorMsg }">
                        <InputGroupAddon>
                            <i class="pi pi-envelope"></i>
                        </InputGroupAddon>

                        <span class="p-float-label">
                            <InputText
                                id="email"
                                @keyup="checkEmailField"
                                placeholder="Email"
                                v-model="email"
                                name="email"
                                :class="{ 'p-invalid': emailErrorMsg }"
                                aria-describedby="email-text-error"
                            />
                            <label for="email">Email</label>
                        </span>
                    </InputGroup>

I am running Node v20.12.2.

Reproducer

https://stackblitz.com/edit/primevue-create-vue-issue-template-8cx1sy?file=src%2FApp.vue

PrimeVue version

3.52.0

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

Chrome 122.0.6261.112

Steps to reproduce the behavior

Even example from PrimeVue websites doesn't work:

$ .00 Expected behavior

See attached screenshots for expected behavior.

@teoring teoring added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 1, 2024
@bphein1980
Copy link

I am facing the same issue on 3.52.0.

InputGroup and InputGroupAddon are not in the resolver for auto importing.

You can import them manually for the time being...

import InputGroup from 'primevue/inputgroup'
import InputGroupAddon from 'primevue/inputgroupaddon'

@tugcekucukoglu
Copy link
Member

Adding

import InputGroup from 'primevue/inputgroup'
import InputGroupAddon from 'primevue/inputgroupaddon'

solves the problem.

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

3 participants