mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 10:42:12 +00:00
Update src/components/NumberInput/NumberInput.tsx
Co-authored-by: Timothy Z. <timothy@stremio.com>
This commit is contained in:
parent
675328ca08
commit
6999ef6a8d
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ const NumberInput = forwardRef<HTMLInputElement, Props>(({ defaultValue, showBut
|
|||
const onKeyDown = useCallback((event: KeyboardEvent<HTMLInputElement>) => {
|
||||
props.onKeyDown && props.onKeyDown(event);
|
||||
|
||||
if (event.key === 'Enter' ) {
|
||||
if (event.key === 'Enter') {
|
||||
props.onSubmit && props.onSubmit(event);
|
||||
}
|
||||
}, [props.onKeyDown, props.onSubmit]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue