From d511e42d7f3ac64b8f88b2b90016e072a1adaf43 Mon Sep 17 00:00:00 2001 From: Federico Boscherini Date: Thu, 9 Nov 2023 19:33:48 +0100 Subject: [PATCH] Fix "InputNumber: float label initially broken if allowEmpty = false" --- components/lib/inputnumber/style/InputNumberStyle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/inputnumber/style/InputNumberStyle.js b/components/lib/inputnumber/style/InputNumberStyle.js index f67e31e84..59b03a32b 100644 --- a/components/lib/inputnumber/style/InputNumberStyle.js +++ b/components/lib/inputnumber/style/InputNumberStyle.js @@ -109,7 +109,7 @@ const classes = { root: ({ instance, props }) => [ 'p-inputnumber p-component p-inputwrapper', { - 'p-inputwrapper-filled': instance.filled, + 'p-inputwrapper-filled': instance.filled || props.allowEmpty === false, 'p-inputwrapper-focus': instance.focused, 'p-inputnumber-buttons-stacked': props.showButtons && props.buttonLayout === 'stacked', 'p-inputnumber-buttons-horizontal': props.showButtons && props.buttonLayout === 'horizontal',