From 6296623834965be92f20a3d1c8d93d0bd5f87a3d Mon Sep 17 00:00:00 2001 From: Jed Watson Date: Mon, 8 Jan 2018 10:18:39 +1100 Subject: [PATCH] Fixing errors and warnings after refactor --- src/Option.js | 2 +- src/utils/defaultFilterOptions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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];