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) )