Skip to content

Commit

Permalink
[form-builder] Don't pass unsupported prop on select
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Nov 7, 2017
1 parent a0d96db commit 070e759
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/@sanity/form-builder/src/inputs/StringSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,13 @@ export default class StringSelect extends React.PureComponent {
? <RadioSelect
name={type.name}
legend={type.title}
level={level}
items={items}
onChange={this.handleChange}
value={currentItem}
direction={type.options.direction || 'vertical'}
/>
: <Select
label={type.title}
level={level}
value={currentItem}
placeholder={type.placeholder}
onChange={this.handleChange}
Expand Down

0 comments on commit 070e759

Please sign in to comment.