Fixed #6721 - Forms: InputNumber Field Not Showing Red Border on Error State

pull/7060/head
Mert Sincan 2025-01-08 10:55:38 +00:00
parent 3b70777c90
commit 99b5d73a7c
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@
<InputText
ref="input"
:id="inputId"
:name="$formName"
role="spinbutton"
:class="[cx('pcInputText'), inputClass]"
:style="inputStyle"

View File

@ -165,6 +165,7 @@ const classes = {
root: ({ instance, props }) => [
'p-inputnumber p-component p-inputwrapper',
{
'p-invalid': instance.$invalid,
'p-inputwrapper-filled': instance.$filled || props.allowEmpty === false,
'p-inputwrapper-focus': instance.focused,
'p-inputnumber-stacked': props.showButtons && props.buttonLayout === 'stacked',