Fixed #6721 - Forms: InputNumber Field Not Showing Red Border on Error State
parent
3b70777c90
commit
99b5d73a7c
|
@ -3,6 +3,7 @@
|
||||||
<InputText
|
<InputText
|
||||||
ref="input"
|
ref="input"
|
||||||
:id="inputId"
|
:id="inputId"
|
||||||
|
:name="$formName"
|
||||||
role="spinbutton"
|
role="spinbutton"
|
||||||
:class="[cx('pcInputText'), inputClass]"
|
:class="[cx('pcInputText'), inputClass]"
|
||||||
:style="inputStyle"
|
:style="inputStyle"
|
||||||
|
|
|
@ -165,6 +165,7 @@ const classes = {
|
||||||
root: ({ instance, props }) => [
|
root: ({ instance, props }) => [
|
||||||
'p-inputnumber p-component p-inputwrapper',
|
'p-inputnumber p-component p-inputwrapper',
|
||||||
{
|
{
|
||||||
|
'p-invalid': instance.$invalid,
|
||||||
'p-inputwrapper-filled': instance.$filled || props.allowEmpty === false,
|
'p-inputwrapper-filled': instance.$filled || props.allowEmpty === false,
|
||||||
'p-inputwrapper-focus': instance.focused,
|
'p-inputwrapper-focus': instance.focused,
|
||||||
'p-inputnumber-stacked': props.showButtons && props.buttonLayout === 'stacked',
|
'p-inputnumber-stacked': props.showButtons && props.buttonLayout === 'stacked',
|
||||||
|
|
Loading…
Reference in New Issue