We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25e00ab commit c649c42Copy full SHA for c649c42
src/Shared/Components/CustomInput/CustomInput.tsx
@@ -69,9 +69,7 @@ const CustomInput = ({
69
props.onChange(event)
70
}
71
72
- if (typeof onBlur === 'function') {
73
- onBlur(event)
74
- }
+ onBlur?.(event)
75
76
77
const handleKeyDown: InputHTMLAttributes<HTMLInputElement>['onKeyDown'] = (event) => {
@@ -84,6 +82,7 @@ const CustomInput = ({
84
82
85
83
const handleEndIconButtonClick: CustomInputProps['endIconButtonConfig']['onClick'] = (event) => {
86
event.stopPropagation()
+ inputRef.current.focus()
87
endIconButtonConfig?.onClick(event)
88
89
0 commit comments