Skip to content

Commit 97c3fa3

Browse files
authored
Incubator.TextField - fix context menu not showing in centered and empty input (#2617)
1 parent abf9b87 commit 97c3fa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/incubator/TextField/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const TextField = (props: InternalTextFieldProps) => {
116116
return centered ? [validationMessageStyle, styles.centeredValidationMessage] : validationMessageStyle;
117117
}, [validationMessageStyle, centered]);
118118
const inputStyle = useMemo(() => {
119-
return [typographyStyle, colorStyle, others.style, centered && styles.centeredInput];
119+
return [typographyStyle, colorStyle, others.style, fieldState.value && centered && styles.centeredInput];
120120
}, [typographyStyle, colorStyle, others.style, centered]);
121121
const dummyPlaceholderStyle = useMemo(() => {
122122
return [inputStyle, styles.dummyPlaceholder];

0 commit comments

Comments
 (0)