diff --git a/src/components/Select/__tests__/Select.base-actions.test.tsx b/src/components/Select/__tests__/Select.base-actions.test.tsx index fb821d843e..d90a01a569 100644 --- a/src/components/Select/__tests__/Select.base-actions.test.tsx +++ b/src/components/Select/__tests__/Select.base-actions.test.tsx @@ -63,6 +63,13 @@ describe('Select base actions', () => { expect(selectControl).not.toHaveClass(SELECT_CONTROL_OPEN_CLASS); expect(screen.queryByTestId(SelectQa.POPUP)).toBeNull(); }); + test('should have [type="button"] attribute in root button', async () => { + await act(async () => { + setup(); + }); + const selectControl = screen.getByTestId(TEST_QA); + expect(selectControl).toHaveAttribute('type', 'button'); + }); }); describe('open', () => { diff --git a/src/components/Select/components/SelectControl/SelectControl.tsx b/src/components/Select/components/SelectControl/SelectControl.tsx index 3f6bf3ff5e..ea75085953 100644 --- a/src/components/Select/components/SelectControl/SelectControl.tsx +++ b/src/components/Select/components/SelectControl/SelectControl.tsx @@ -76,6 +76,7 @@ export const SelectControl = React.forwardRef((props, disabled={disabled} onClick={toggleOpen} onKeyDown={onKeyDown} + type="button" > {label && {label}} {showPlaceholder && (