Skip to content

Commit

Permalink
Merge pull request #2040 from jjeising/remove-addLabelText
Browse files Browse the repository at this point in the history
Remove option `addLabelText` from README and propTypes
  • Loading branch information
JedWatson authored Oct 18, 2017
2 parents 7cd93e5 + 4d96c3e commit f2604e9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ function onInputKeyDown(event) {

| Property | Type | Default | Description |
|:---|:---|:---|:---|
| addLabelText | string | 'Add "{label}"?' | text to display when `allowCreate` is true |
arrowRenderer | func | undefined | Renders a custom drop-down arrow to be shown in the right-hand side of the select: `arrowRenderer({ onMouseDown, isOpen })` |
| arrowRenderer | func | undefined | Renders a custom drop-down arrow to be shown in the right-hand side of the select: `arrowRenderer({ onMouseDown, isOpen })` |
| autoBlur | bool | false | Blurs the input element after a selection has been made. Handy for lowering the keyboard on mobile devices |
| autofocus | bool | undefined | autofocus the component on mount |
| autoload | bool | true | whether to auto-load the default async options set |
Expand Down
2 changes: 0 additions & 2 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,6 @@ Select.propTypes = {
'aria-describedby': PropTypes.string, // HTML ID(s) of element(s) that should be used to describe this input (for assistive tech)
'aria-label': PropTypes.string, // Aria label (for assistive tech)
'aria-labelledby': PropTypes.string, // HTML ID of an element that should be used as the label (for assistive tech)
addLabelText: PropTypes.string, // placeholder displayed when you want to add a label on a multi-value input
arrowRenderer: PropTypes.func, // Create drop-down caret element
autoBlur: PropTypes.bool, // automatically blur the component when an option is selected
autofocus: PropTypes.bool, // deprecated; use autoFocus instead
Expand Down Expand Up @@ -1119,7 +1118,6 @@ Select.propTypes = {
};

Select.defaultProps = {
addLabelText: 'Add "{label}"?',
arrowRenderer: defaultArrowRenderer,
autosize: true,
backspaceRemoves: true,
Expand Down
3 changes: 1 addition & 2 deletions test/Select-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1605,8 +1605,7 @@ describe('Select', () => {
value: 'one',
options: options,
allowCreate: true,
searchable: true,
addLabelText: 'Add {label} to values?'
searchable: true
});
});

Expand Down

0 comments on commit f2604e9

Please sign in to comment.