Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

Commit d49a061

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)