We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f3fb6b commit d49a061Copy full SHA for d49a061
components/lib/inputtext/InputText.js
@@ -71,7 +71,7 @@ export const InputText = React.memo(
71
const hasTooltip = ObjectUtils.isNotEmpty(props.tooltip);
72
73
React.useEffect(() => {
74
- if (isFilled) {
+ if (isFilled || elementRef.current?.value) {
75
DomHandler.addClass(elementRef.current, 'p-filled');
76
} else {
77
DomHandler.removeClass(elementRef.current, 'p-filled');
0 commit comments