Skip to content

Commit

Permalink
Added onpaste event/feature in <input/> tag (#6719)
Browse files Browse the repository at this point in the history
* Added onpaste event/feature in <input/> tag

* Updated the onPaste event
  • Loading branch information
Sparsh-06 authored Aug 15, 2024
1 parent 3a59b83 commit 46779b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export type InputProps = Pick<
| 'name'
| 'onFocus'
| 'onBlur'
| 'onPaste'
| 'autoCapitalize'
| 'autoCorrect'
| 'onKeyDown'
Expand Down Expand Up @@ -164,6 +165,7 @@ export const Input = forwardRef<InputRef, InputProps>((props, ref) => {
checkValue()
mergedProps.onBlur?.(e)
}}
onPaste={mergedProps.onPaste}
id={mergedProps.id}
placeholder={mergedProps.placeholder}
disabled={mergedProps.disabled}
Expand Down

0 comments on commit 46779b0

Please sign in to comment.