Skip to content

Commit

Permalink
Attempt to fix issue #1687 (Error styling using StyleSheet for Label …
Browse files Browse the repository at this point in the history
…component)
  • Loading branch information
akhil-ga committed Mar 14, 2018
1 parent 1dca9a0 commit c503857
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/basic/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class Item extends Component {

renderLabel(label, labelProps) {
const newLabel = [];
let labelStyle = labelProps.style
if (this.props.floatingLabel) {
if (this.state.isFocused) {
newLabel.push(
Expand All @@ -84,7 +85,7 @@ class Item extends Component {
style: {
fontSize: 15,
lineHeight: 30,
...labelProps.style
labelStyle
}
})
);
Expand Down

0 comments on commit c503857

Please sign in to comment.