primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.33k stars 1.22k forks source link

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

Closed leecraigjeffries closed 2 months ago

leecraigjeffries commented 2 months ago

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

tiltsoftware commented 2 months ago

Also seeing this issue in same scenario

avramz commented 2 months ago

Can reproduce, fix in PR