Skip to content

Commit

Permalink
Fix placeholder labels
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoco committed Sep 22, 2018
1 parent 4b50e60 commit 72bb288
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ class Component extends React.Component {
let label = this.props.options.label || this.props.options.legend;
if (Nil.is(label) && this.getAuto() === "labels") {
label = this.getDefaultLabel();
} else if (Nil.is(label) && this.getAuto() === "placeholders") {
label = null;
} else {
label =
label +
Expand Down Expand Up @@ -303,7 +305,8 @@ class Textbox extends Component {
"onKeyPress",
"returnKeyType",
"selectionState",
"testID"
"testID",
"textContentType"
].forEach(name => (locals[name] = this.props.options[name]));

return locals;
Expand Down

0 comments on commit 72bb288

Please sign in to comment.