diff --git a/packages/react-component-library/src/components/SelectBase/SelectLayout.tsx b/packages/react-component-library/src/components/SelectBase/SelectLayout.tsx index 6eca0e471a..8b9393cdca 100644 --- a/packages/react-component-library/src/components/SelectBase/SelectLayout.tsx +++ b/packages/react-component-library/src/components/SelectBase/SelectLayout.tsx @@ -5,7 +5,6 @@ import mergeRefs from 'react-merge-refs' import { ArrowButton } from '../Select/ArrowButton' import { ClearButton } from '../Select/ClearButton' import { ComponentWithClass } from '../../common/ComponentWithClass' -import { FloatingBox } from '../../primitives/FloatingBox' import { SelectChildWithStringType } from './types' import { StyledInlineButtons } from './partials/StyledInlineButtons' import { StyledInput } from './partials/StyledInput' @@ -19,6 +18,7 @@ import { StyledTextInput } from './partials/StyledTextInput' import { StyledTooltip } from './partials/StyledTooltip' import { useExternalId } from '../../hooks/useExternalId' import { useStatefulRef } from '../../hooks/useStatefulRef' +import { StyledFloatingBox } from './partials/StyledFloatingBox' type ComboboxReturnValueType = UseComboboxReturnValue type SelectReturnValueType = UseSelectReturnValue @@ -134,14 +134,14 @@ export const SelectLayout: React.FC = ({ {children} - {value} - + ) } diff --git a/packages/react-component-library/src/components/SelectBase/partials/StyledFloatingBox.tsx b/packages/react-component-library/src/components/SelectBase/partials/StyledFloatingBox.tsx new file mode 100644 index 0000000000..3a251b2903 --- /dev/null +++ b/packages/react-component-library/src/components/SelectBase/partials/StyledFloatingBox.tsx @@ -0,0 +1,7 @@ +import styled from 'styled-components' + +import { FloatingBox } from '../../../primitives/FloatingBox' + +export const StyledFloatingBox = styled(FloatingBox)` + pointer-events: none; +`