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: Buttons disappear when clicked if inside of an InputGroup #6212

Closed
leecraigjeffries opened this issue Aug 11, 2024 · 2 comments · Fixed by #6273
Closed

InputNumber: Buttons disappear when clicked if inside of an InputGroup #6212

leecraigjeffries opened this issue Aug 11, 2024 · 2 comments · Fixed by #6273
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@leecraigjeffries
Copy link

Describe the bug

If I have an InputNumber inside of an InputGroup and press either the up or down arrow, the buttons disappear

                <InputGroup>
                    <InputNumber v-model="discount"
                                 :pt:pcInput:root:name="'discount[' + index + ']'"
                                 fluid
                                 showButtons
                                 :min="0.01"
                                 :max="100"
                                 :step="0.01"
                                 placeholder="Discount..."
                    />
                    <InputGroupAddon>
                        %
                    </InputGroupAddon>
                </InputGroup>

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-a2a487?file=src%2FApp.vue

PrimeVue version

4.0.4

Vue version

4.x

Language

ES6

Build / Runtime

Vite

Browser(s)

Chrome and Firefox Developer Edition

Steps to reproduce the behavior

                <InputGroup>
                    <InputNumber v-model="discount"
                                 :pt:pcInput:root:name="'discount[' + index + ']'"
                                 fluid
                                 showButtons
                                 :min="0.01"
                                 :max="100"
                                 :step="0.01"
                                 placeholder="Discount..."
                    />
                    <InputGroupAddon>
                        %
                    </InputGroupAddon>
                </InputGroup>

Use that code and click on one of the buttons and they'll disappear until you click off the input box

Expected behavior

The buttons should remain visible and not disappear

@leecraigjeffries leecraigjeffries added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 11, 2024
@tiltsoftware
Copy link

Also seeing this issue in same scenario

avramz added a commit to avramz/primevue that referenced this issue Aug 22, 2024
…when input text receives focus while in input group.

fixes primefaces#6212
@avramz
Copy link
Contributor

avramz commented Aug 22, 2024

Can reproduce, fix in PR

@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 Aug 23, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.0.5 milestone Aug 23, 2024
LeaderbotX400 pushed a commit to LeaderbotX400/primevue that referenced this issue Aug 29, 2024
…when input text receives focus while in input group.

fixes primefaces#6212
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.

4 participants