diff --git a/superset/assets/spec/javascripts/components/TableSelector_spec.jsx b/superset/assets/spec/javascripts/components/TableSelector_spec.jsx index 8169d1da9d4..d1febbf8f88 100644 --- a/superset/assets/spec/javascripts/components/TableSelector_spec.jsx +++ b/superset/assets/spec/javascripts/components/TableSelector_spec.jsx @@ -145,7 +145,6 @@ describe('TableSelector', () => { it('should clear table options', () => { inst.fetchTables(true); expect(wrapper.state().tableOptions).toEqual([]); - expect(wrapper.state().filterOptions).toBeNull(); }); it('should fetch table options', () => { diff --git a/superset/assets/src/components/TableSelector.jsx b/superset/assets/src/components/TableSelector.jsx index dc5d075c7c8..b7783dd9843 100644 --- a/superset/assets/src/components/TableSelector.jsx +++ b/superset/assets/src/components/TableSelector.jsx @@ -19,7 +19,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import Select from 'react-virtualized-select'; -import createFilterOptions from 'react-select-fast-filter-options'; import { ControlLabel, Label } from 'react-bootstrap'; import { t } from '@superset-ui/translation'; import { SupersetClient } from '@superset-ui/connection'; @@ -70,7 +69,6 @@ export default class TableSelector extends React.PureComponent { dbId: props.dbId, schema: props.schema, tableName: props.tableName, - filterOptions: null, }; this.changeSchema = this.changeSchema.bind(this); this.changeTable = this.changeTable.bind(this); @@ -144,7 +142,6 @@ export default class TableSelector extends React.PureComponent { title: o.title, })); this.setState(() => ({ - filterOptions: createFilterOptions({ options }), tableLoading: false, tableOptions: options, })); @@ -155,7 +152,7 @@ export default class TableSelector extends React.PureComponent { this.props.handleError(t('Error while fetching table list')); }); } - this.setState(() => ({ tableLoading: false, tableOptions: [], filterOptions: null })); + this.setState(() => ({ tableLoading: false, tableOptions: [] })); return Promise.resolve(); } fetchSchemas(dbId, force) { @@ -277,10 +274,10 @@ export default class TableSelector extends React.PureComponent { name="select-table" ref="selectTable" isLoading={this.state.tableLoading} + ignoreAccents={false} placeholder={t('Select table or type table name')} autosize={false} onChange={this.changeTable} - filterOptions={this.state.filterOptions} options={options} value={this.state.tableName} />) : (