Skip to content

Commit

Permalink
Apply code review suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pattie Reaves committed Oct 19, 2020
1 parent 9617003 commit 2bb3dab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('<Select/> component', () => {

const component = selectWithProps(<Select {...props({ searchFn, options })} />);

const input = component.root.find(element => element.props.className === 'react-dropdown-select-input');
const input = component.root.find(element => element.props.className === `${LIB_NAME}-input`);

TestRenderer.act(() => input.props.onChange({ target: { value: 'Zer' } }));

Expand Down
2 changes: 2 additions & 0 deletions docs/src/pages/state.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ Access to current state of &lt;Select/&gt; component
| dropdown | boolean | check if dropdown is open |
| values | array | selected value(s) |
| search | string | current search string |
| searchResults| string | Filtered search results
|
| selectBounds | object | current `getBoundingClientRect()` of &lt;Select/&gt; |
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ export class Select extends Component {
});

handleKeyDown = (event) => {
console.log({ event });
const args = {
event,
state: this.state,
Expand Down

0 comments on commit 2bb3dab

Please sign in to comment.