Give event in Dropdown an explicit type
This commit is contained in:
parent
9d3c15b115
commit
80604310f2
|
@ -49,7 +49,7 @@ const Dropdown = ({ options, value, onchange, small }: DropdownProps) => {
|
||||||
{ className: wrapper },
|
{ className: wrapper },
|
||||||
H(
|
H(
|
||||||
"select",
|
"select",
|
||||||
{ onchange: (e: any) => onchange(e.target.value) },
|
{ onchange: ({target}: Event) => onchange((target as HTMLInputElement).value) },
|
||||||
options.map((o) =>
|
options.map((o) =>
|
||||||
H("option", { value: o.value, selected: value === o.value }, o.text)
|
H("option", { value: o.value, selected: value === o.value }, o.text)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user