From 6612edc17d57737b7f46d5dcd041d37ff07fae31 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Mon, 22 Apr 2019 07:57:29 +0200 Subject: [PATCH] any -> unknown --- .../demos/selection-controls/FormControlLabelPosition.tsx | 4 ++-- docs/src/pages/demos/selection-controls/RadioButtonsGroup.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/pages/demos/selection-controls/FormControlLabelPosition.tsx b/docs/src/pages/demos/selection-controls/FormControlLabelPosition.tsx index aac488c4197743..782eb88febf838 100644 --- a/docs/src/pages/demos/selection-controls/FormControlLabelPosition.tsx +++ b/docs/src/pages/demos/selection-controls/FormControlLabelPosition.tsx @@ -8,8 +8,8 @@ import FormLabel from '@material-ui/core/FormLabel'; function FormControlLabelPosition() { const [value, setValue] = React.useState('female'); - function handleChange(event: React.ChangeEvent) { - setValue(event.target.value); + function handleChange(event: React.ChangeEvent) { + setValue((event.target as HTMLInputElement).value); } return ( diff --git a/docs/src/pages/demos/selection-controls/RadioButtonsGroup.tsx b/docs/src/pages/demos/selection-controls/RadioButtonsGroup.tsx index fcfaf24e41b366..dbd40c9dc2fc71 100644 --- a/docs/src/pages/demos/selection-controls/RadioButtonsGroup.tsx +++ b/docs/src/pages/demos/selection-controls/RadioButtonsGroup.tsx @@ -23,8 +23,8 @@ function RadioButtonsGroup() { const classes = useStyles(); const [value, setValue] = React.useState('female'); - function handleChange(event: React.ChangeEvent) { - setValue(event.target.value); + function handleChange(event: React.ChangeEvent) { + setValue((event.target as HTMLInputElement).value); } return (