Revert "Give event in Dropdown an explicit type"

This reverts commit 80604310f2.
This commit is contained in:
Forrest Wolf 2022-05-25 17:14:19 -04:00
parent 80604310f2
commit 3a9a9b1c6e

View File

@ -49,7 +49,7 @@ const Dropdown = ({ options, value, onchange, small }: DropdownProps) => {
{ className: wrapper },
H(
"select",
{ onchange: ({target}: Event) => onchange((target as HTMLInputElement).value) },
{ onchange: (e: any) => onchange(e.target.value) },
options.map((o) =>
H("option", { value: o.value, selected: value === o.value }, o.text)
)