Skip to content

Commit

Permalink
fix: Add type for ref
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel.carrera committed Sep 5, 2023
1 parent 6233311 commit 9833e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/react/select/stories/examples/RefForwarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const disabledItems = options.filter(item => item.disabled === true).map(item =>

export const RefForwarding = () => {
const [value, setValue] = React.useState('medium');
const ref = React.useRef(null);
const ref = React.useRef<HTMLInputElement>(null);

const handleChange = (event: React.ChangeEvent<HTMLInputElement>) => {
setValue(event.target.value);
Expand Down

0 comments on commit 9833e6a

Please sign in to comment.