Skip to content

Commit

Permalink
Fixing errors and warnings after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Jan 7, 2018
1 parent 0896a20 commit 6296623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Option.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { blockEvent } from './utils/blockEvent';
import blockEvent from './utils/blockEvent';

class Option extends React.Component {

Expand Down
2 changes: 1 addition & 1 deletion src/utils/defaultFilterOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const filterOptions = (options, filterValue, excludeOptions, props) => {

return options.filter(option => {
if (excludeOptions && excludeOptions.indexOf(option[props.valueKey]) > -1) return false;
if (props.filterOption) return props.filterOption.call(this, option, filterValue);
if (props.filterOption) return props.filterOption.call(undefined, option, filterValue);
if (!filterValue) return true;

const value = option[props.valueKey];
Expand Down

0 comments on commit 6296623

Please sign in to comment.