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 05ca7f7 commit 0fa97f8Copy full SHA for 0fa97f8
src/components/inputs/TextInput.js
@@ -278,10 +278,11 @@ export default class TextInput extends BaseInput {
278
}
279
280
renderCharCounter() {
281
+ const {focused} = this.state;
282
const {maxLength, showCharacterCounter} = this.props;
283
if (maxLength && showCharacterCounter) {
284
const counter = this.getCharCount();
- const color = this.isCounterLimit() ? charCountColorLimit : charCountColorDefault;
285
+ const color = this.isCounterLimit() && focused ? charCountColorLimit : charCountColorDefault;
286
return (
287
<Text
288
style={[{color}, this.styles.charCounter]}
0 commit comments