diff options
Diffstat (limited to 'src/components/TextInput.tsx')
| -rw-r--r-- | src/components/TextInput.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/TextInput.tsx b/src/components/TextInput.tsx index 026b062..c74828d 100644 --- a/src/components/TextInput.tsx +++ b/src/components/TextInput.tsx @@ -4,12 +4,12 @@ import './TextInput.css'; export interface TextInputProps { signal?: Signal<string>; - props: Record<string, any>; + [prop: string]: any; } const TextInput = ({ signal, ...props }: TextInputProps) => { const onInputSignal = useCallback((event: InputEvent) => { - signal.value = event.target.value; + if (signal) signal.value = (event.target as HTMLInputElement).value; }, [signal]); return ( |
