fix: use unknown cast for Event to MouseEvent conversion in ClientButton

This commit is contained in:
2026-06-02 01:10:53 -05:00
parent 8da6a3f5ed
commit 4874a4bae8

View File

@@ -17,7 +17,7 @@ export function ClientButton({
if (typeof onClick === 'string') {
btnRef.current.onclick = onClick as any
} else if (typeof onClick === 'function') {
btnRef.current.onclick = (e: Event) => onClick(e as React.MouseEvent<HTMLButtonElement>)
btnRef.current.onclick = (e: Event) => onClick(e as unknown as React.MouseEvent<HTMLButtonElement>)
}
}, [onClick])