primefaces / primevue

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

Unable to add css class to InputNumber #6314

Open EnelKyss opened 2 months ago

EnelKyss commented 2 months ago

Describe the bug

Whenever I try to add any css working class, it will be placed in wrong div, not the one that actually matters. InputText works.

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template?file=README.md

PrimeVue version

4.0.4

Vue version

4.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

chrome

Steps to reproduce the behavior

add any class to component

Expected behavior

added class should change the appereance of the input

eneeio-nm commented 2 months ago

@EnelKyss have you tried inputClass prop? https://primevue.org/inputnumber/#api.inputnumber.props.inputClass

eneeio-nm commented 2 months ago

Here's an example of how I have been able to make an InputNumber have a blue border: https://stackblitz.com/edit/oq5xjt?file=src%2FApp.vue