diff --git a/packages/Input/InputElement.tsx b/packages/Input/InputElement.tsx index 756d68e..2f1e743 100644 --- a/packages/Input/InputElement.tsx +++ b/packages/Input/InputElement.tsx @@ -56,7 +56,14 @@ const InputLeftElement: FC> = ({ }) => { const classes = classNames('raw-input-left-element', className); - return ; + return ( + + ); }; const InputRightElement: FC> = ({ @@ -65,7 +72,14 @@ const InputRightElement: FC> = ({ }) => { const classes = classNames('raw-input-right-element', className); - return ; + return ( + + ); }; export { InputLeftElement, InputRightElement }; diff --git a/packages/Input/__tests__/Input.test.tsx b/packages/Input/__tests__/Input.test.tsx index b8ddd52..86c685f 100644 --- a/packages/Input/__tests__/Input.test.tsx +++ b/packages/Input/__tests__/Input.test.tsx @@ -157,6 +157,19 @@ describe('Input', () => { expect(screen.getByText('.0')).toBeInTheDocument(); }); + test('should inside element support clickable style', () => { + render( + + $ + + .0 + + ); + const leftElement = screen.getByTestId('inputLeftElement'); + expect(getComputedStyle(leftElement).pointerEvents).toBe('auto'); + expect(getComputedStyle(leftElement).cursor).toBe('pointer'); + }); + test('should support addon element', () => { render(