We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 023e7cf commit c90dd30Copy full SHA for c90dd30
1 file changed
src/shared/ui/TextField/TextField.tsx
@@ -43,7 +43,9 @@ export const TextField = ({
43
const isChar = type === 'char';
44
const isPrice = type === 'price';
45
46
- const maxLen = isChar ? CHAR_MAX_LENGTH : (maxLength ?? (isTextarea ? TEXTAREA_MAX_LENGTH : undefined));
+ const maxLen = isChar
47
+ ? CHAR_MAX_LENGTH
48
+ : (maxLength ?? (isTextarea ? TEXTAREA_MAX_LENGTH : undefined));
49
const normalizedValue = isPrice ? rawValue.replace(/\D/g, '') : rawValue;
50
51
const displayValue = useMemo(() => {
0 commit comments