Skip to content

Commit

Permalink
Fix #7514: Dropdown float label fix (#7531)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 30, 2024
1 parent 5ae4498 commit d133315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/dropdown/DropdownBase.js
Original file line number Diff line number Diff line change
@@ -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 }) =>
Expand All @@ -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 }) =>
Expand Down

0 comments on commit d133315

Please sign in to comment.