diff --git a/package.json b/package.json index 3a6c7e6..ea6adc6 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "react", "typescript" ], - "version": "2.1.4", + "version": "2.1.5", "main": "./dist/index.cjs.js", "module": "./dist/index.esm.js", "types": "./dist/index.d.ts", diff --git a/src/components/molecules/Fields/Field/Field.tsx b/src/components/molecules/Fields/Field/Field.tsx index f79f40a..f8069f7 100644 --- a/src/components/molecules/Fields/Field/Field.tsx +++ b/src/components/molecules/Fields/Field/Field.tsx @@ -156,6 +156,14 @@ const Field = forwardRef((props, ref) => { alt={alt} autoFocus={autoFocus} autoComplete={browserAutoComplete} + onWheel={e => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const target = e?.target as any + + if (typeof target?.blur === 'function') { + target.blur() + } + }} /> ) : ( @@ -181,6 +189,14 @@ const Field = forwardRef((props, ref) => { alt={alt} autoFocus={autoFocus} autoComplete={browserAutoComplete} + onWheel={e => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const target = e?.target as any + + if (typeof target?.blur === 'function') { + target.blur() + } + }} /> )} {type !== 'file' && (sufixElement || null)}