diff --git a/superset-frontend/spec/javascripts/views/CRUD/alert/AlertReportModal_spec.jsx b/superset-frontend/spec/javascripts/views/CRUD/alert/AlertReportModal_spec.jsx index 941faf176..b4a0131ae 100644 --- a/superset-frontend/spec/javascripts/views/CRUD/alert/AlertReportModal_spec.jsx +++ b/superset-frontend/spec/javascripts/views/CRUD/alert/AlertReportModal_spec.jsx @@ -24,9 +24,8 @@ import fetchMock from 'fetch-mock'; import { act } from 'react-dom/test-utils'; import AlertReportModal from 'src/views/CRUD/alert/AlertReportModal'; import Modal from 'src/common/components/Modal'; -import { AsyncSelect } from 'src/components/Select'; +import { AsyncSelect, NativeGraySelect as Select } from 'src/components/Select'; import { Radio } from 'src/common/components/Radio'; -import { GraySelect as Select } from 'src/common/components/Select'; import { Switch } from 'src/common/components/Switch'; import TextAreaControl from 'src/explore/components/controls/TextAreaControl'; import waitForComponentToPaint from 'spec/helpers/waitForComponentToPaint'; diff --git a/superset-frontend/src/common/components/Select.tsx b/superset-frontend/src/components/Select/NativeSelect.tsx similarity index 74% rename from superset-frontend/src/common/components/Select.tsx rename to superset-frontend/src/components/Select/NativeSelect.tsx index 49dc91d69..604496701 100644 --- a/superset-frontend/src/common/components/Select.tsx +++ b/superset-frontend/src/components/Select/NativeSelect.tsx @@ -18,18 +18,15 @@ */ import React from 'react'; import { styled } from '@superset-ui/core'; -import { Select as BaseSelect, SelectProps } from 'src/common/components'; +import Select, { SelectProps } from 'antd/lib/select'; -const StyledSelect = styled((props: SelectProps) => ( - trigger.parentNode} - {...props} - /> +const StyledNativeSelect = styled((props: SelectProps) => ( +