Skip to content

Commit 5da37a7

Browse files
committed
TextField inputStyle hasValue refactor
1 parent 919e536 commit 5da37a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/incubator/TextField/index.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ const TextField = (props: InternalTextFieldProps) => {
115115
const _validationMessageStyle = useMemo(() => {
116116
return centered ? [validationMessageStyle, styles.centeredValidationMessage] : validationMessageStyle;
117117
}, [validationMessageStyle, centered]);
118-
const hasValue = useMemo(() => {
119-
return fieldState.value !== undefined;
120-
}, [fieldState.value]);
118+
const hasValue = fieldState.value !== undefined;
121119
const inputStyle = useMemo(() => {
122120
return [typographyStyle, colorStyle, others.style, hasValue && centered && styles.centeredInput];
123121
}, [typographyStyle, colorStyle, others.style, centered, hasValue]);

0 commit comments

Comments
 (0)