Give event in Dropdown an explicit type

This commit is contained in:
Forrest Wolf 2022-05-25 11:46:24 -04:00
parent 9d3c15b115
commit 80604310f2

View File

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