From 0dec3c4498848016d737c8478db9f4ca141d7707 Mon Sep 17 00:00:00 2001 From: melloware Date: Mon, 30 Dec 2024 08:47:43 -0500 Subject: [PATCH] Fix #7514: Dropdown float label fix --- components/lib/dropdown/DropdownBase.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/dropdown/DropdownBase.js b/components/lib/dropdown/DropdownBase.js index 88ac1e1563..2963eac6cd 100644 --- a/components/lib/dropdown/DropdownBase.js +++ b/components/lib/dropdown/DropdownBase.js @@ -1,6 +1,6 @@ import PrimeReact from '../api/Api'; import { ComponentBase } from '../componentbase/ComponentBase'; -import { ObjectUtils, classNames } from '../utils/Utils'; +import { classNames } from '../utils/Utils'; const classes = { root: ({ props, focusedState, overlayVisibleState, context }) => @@ -10,7 +10,7 @@ const classes = { 'p-focus': focusedState, 'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled', 'p-dropdown-clearable': props.showClear && !props.disabled, - 'p-inputwrapper-filled': ObjectUtils.isNotEmpty(props.value), + 'p-inputwrapper-filled': props.value !== undefined, 'p-inputwrapper-focus': focusedState || overlayVisibleState }), input: ({ props, label }) =>