diff --git a/src/Option.js b/src/Option.js index 0f4c45678a..db7a91574e 100644 --- a/src/Option.js +++ b/src/Option.js @@ -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 { diff --git a/src/utils/defaultFilterOptions.js b/src/utils/defaultFilterOptions.js index 9d92331e8c..9223d77151 100644 --- a/src/utils/defaultFilterOptions.js +++ b/src/utils/defaultFilterOptions.js @@ -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];