Skip to content

Commit d133315

Browse files
authored
Fix #7514: Dropdown float label fix (#7531)
1 parent 5ae4498 commit d133315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/lib/dropdown/DropdownBase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PrimeReact from '../api/Api';
22
import { ComponentBase } from '../componentbase/ComponentBase';
3-
import { ObjectUtils, classNames } from '../utils/Utils';
3+
import { classNames } from '../utils/Utils';
44

55
const classes = {
66
root: ({ props, focusedState, overlayVisibleState, context }) =>
@@ -10,7 +10,7 @@ const classes = {
1010
'p-focus': focusedState,
1111
'p-variant-filled': props.variant ? props.variant === 'filled' : context && context.inputStyle === 'filled',
1212
'p-dropdown-clearable': props.showClear && !props.disabled,
13-
'p-inputwrapper-filled': ObjectUtils.isNotEmpty(props.value),
13+
'p-inputwrapper-filled': props.value !== undefined,
1414
'p-inputwrapper-focus': focusedState || overlayVisibleState
1515
}),
1616
input: ({ props, label }) =>

0 commit comments

Comments
 (0)