InputText and Textarea duplicating custom class(es) in DOM element #2522
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
CodeSandbox Case (Bug Reports)
https://codesandbox.io/s/beautiful-pond-wy082c
Current behavior
Element has duplicated custom class name(s).
Expected behavior
Element should assign custom class name(s) only once.
Minimal reproduction of the problem with instructions
Add an InputText, InputNumber or Textarea with a custom class to your project then inspect the element in a browser, the input element has your custom class(es) twice.
Same issue could be observed in PrimeVue documentation, for example : https://www.primefaces.org/primevue/inputtext
Inspect the input for the Invalid example of an InputText, the class
p-invalid
will be assigned twice to the input element.Vue version: 3.2.31
PrimeVue version: 3.12.2
Browser: Chrome 101.0.4951.41 | Firefox 94
The text was updated successfully, but these errors were encountered: