From 80604310f2ff320a62aa16dddfdb12546179f7e6 Mon Sep 17 00:00:00 2001 From: Forrest Wolf Date: Wed, 25 May 2022 11:46:24 -0400 Subject: [PATCH] Give event in Dropdown an explicit type --- og-image/web/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/og-image/web/index.ts b/og-image/web/index.ts index 6478494d..64c8c362 100644 --- a/og-image/web/index.ts +++ b/og-image/web/index.ts @@ -49,7 +49,7 @@ const Dropdown = ({ options, value, onchange, small }: DropdownProps) => { { className: wrapper }, H( "select", - { onchange: (e: any) => onchange(e.target.value) }, + { onchange: ({target}: Event) => onchange((target as HTMLInputElement).value) }, options.map((o) => H("option", { value: o.value, selected: value === o.value }, o.text) )