Skip to content

Commit d49a061

Browse files
authored
fix: #7764 updated condition to add 'p-filled' class to input element (#7779)
1 parent 8f3fb6b commit d49a061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lib/inputtext/InputText.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export const InputText = React.memo(
7171
const hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
7272

7373
React.useEffect(() => {
74-
if (isFilled) {
74+
if (isFilled || elementRef.current?.value) {
7575
DomHandler.addClass(elementRef.current, 'p-filled');
7676
} else {
7777
DomHandler.removeClass(elementRef.current, 'p-filled');

0 commit comments

Comments
 (0)