Skip to content

Commit 061dc17

Browse files
committed
replaced inline function in 'onClick' with direct reference to 'onRightIconClick'
1 parent 1965831 commit 061dc17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/components/TextInput/TextInput.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const TextInput = forwardRef<HTMLInputElement, TextInputProps>(
8787
<div
8888
data-testid="right-icon"
8989
className={`${theme.field.rightIcon.base} ${!onRightIconClick ? "pointer-events-none" : ""}`}
90-
onClick={(e) => onRightIconClick?.(e)}
90+
onClick={onRightIconClick}
9191
>
9292
<RightIcon className={theme.field.rightIcon.svg} />
9393
</div>

0 commit comments

Comments
 (0)