Skip to content

Commit

Permalink
FIX (addPlaceholder): fix default
Browse files Browse the repository at this point in the history
  • Loading branch information
sanusart committed Jan 29, 2019
1 parent 11552e7 commit 5690a90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ and use as:
| dropdownGap | number | 5 | Gap between select element and dropdown |
| multi | bool | false | If true - will act as multi-select, if false - only one option will be selected at the time |
| placeholder | string | "Select..." | Placeholder shown where there are no selected values |
| addPlaceholder | string | null | Secondary placeholder on search field if any value selected |
| addPlaceholder | string | "" | Secondary placeholder on search field if any value selected |
| disabled | bool | false | Disable select and all interactions |
| style | object | {} | Style object to pass to select |
| className | string | | CSS class attribute to pass to select |
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ title: 'API'
| dropdownGap | number | 5 | Gap between select element and dropdown |
| multi | bool | false | If true - will act as multi-select, if false - only one option will be selected at the time |
| placeholder | string | "Select..." | Placeholder shown where there are no selected values |
| addPlaceholder | string | null | Secondary placeholder on search field if any value selected |
| addPlaceholder | string | "" | Secondary placeholder on search field if any value selected |
| disabled | bool | false | Disable select and all interactions |
| style | object | {} | Style object to pass to select |
| className | string | | CSS class attribute to pass to select |
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export class Select extends Component {
}

Select.defaultProps = {
addPlaceholder: null,
addPlaceholder: "",
placeholder: 'Select...',
values: [],
options: [],
Expand Down

0 comments on commit 5690a90

Please sign in to comment.