Skip to content

Commit

Permalink
Merge pull request #688 from shoutem/hotfix/4.9.1
Browse files Browse the repository at this point in the history
Hotfix 4.9.1 → master
  • Loading branch information
ltatarev authored Feb 28, 2022
2 parents 1770fb2 + 883260a commit 04142f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion components/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,22 @@ class TextInput extends PureComponent {
}

handleBlur() {
const { onBlur } = this.props;

if (onBlur) {
onBlur();
}

this.setState({ isFocused: false });
}

handleFocus() {
const { onFocus } = this.props;

if (onFocus) {
onFocus();
}

this.setState({ isFocused: true });
}

Expand All @@ -44,6 +56,7 @@ class TextInput extends PureComponent {
withBorder,
withoutBorder,
wiggleAnimation,
errorText,
...otherStyle
} = style;

Expand All @@ -68,7 +81,7 @@ class TextInput extends PureComponent {
/>
</Wiggle>
{!!errorMessage && (
<Caption styleName="form-error sm-gutter-top">{errorMessage}</Caption>
<Caption styleName="form-error sm-gutter-top" style={errorText}>{errorMessage}</Caption>
)}
</View>
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shoutem/ui",
"version": "4.9.0",
"version": "4.9.1",
"description": "Styleable set of components for React Native applications",
"scripts": {
"lint": "eslint .",
Expand Down

0 comments on commit 04142f3

Please sign in to comment.