diff --git a/ui/component/common/form-components/form-field.jsx b/ui/component/common/form-components/form-field.jsx index 3662b17ac..cc7e7fd3f 100644 --- a/ui/component/common/form-components/form-field.jsx +++ b/ui/component/common/form-components/form-field.jsx @@ -80,7 +80,7 @@ export class FormField extends React.PureComponent { labelOnLeft, blockWrap, charCount, - textAreaMaxLength = FF_MAX_CHARS_DEFAULT, + textAreaMaxLength, quickActionLabel, quickActionHandler, ...inputProps @@ -208,7 +208,7 @@ export class FormField extends React.PureComponent { // to pass the current value to it's callback, nor query the current // text length from the callback. So, we'll use our own widget. const hasCharCount = charCount !== undefined && charCount >= 0; - const countInfo = hasCharCount && ( + const countInfo = hasCharCount && textAreaMaxLength !== undefined && ( {`${charCount || '0'}/${textAreaMaxLength}`} ); @@ -242,7 +242,7 @@ export class FormField extends React.PureComponent { ); } else if (type === 'textarea') { const hasCharCount = charCount !== undefined && charCount >= 0; - const countInfo = hasCharCount && ( + const countInfo = hasCharCount && textAreaMaxLength !== undefined && ( {`${charCount || '0'}/${textAreaMaxLength}`} ); input = ( @@ -255,7 +255,13 @@ export class FormField extends React.PureComponent { {quickAction} )} -