Skip to content

Commit e455c0a

Browse files
author
edcompton
committed
Fix the type of the inputRef to work with input elements.
1 parent c75076a commit e455c0a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@
7979
"test:ci": "jest --coverage",
8080
"test:watch": "jest --watch",
8181
"lint": "eslint --fix -c .eslintrc.js --ext .ts --ext .tsx src/*.ts src/components/**/*.ts src/util/*.ts",
82-
"prebuild": "yarn lint && yarn test --coverage"
82+
"prebuild": "yarn lint && yarn test --coverage",
83+
"prepare": "yarn build"
8384
},
8485
"files": [
8586
"dist",

src/components/radios/components/Radio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface RadioProps extends HTMLProps<HTMLInputElement> {
1111
conditional?: ReactNode;
1212
forceShowConditional?: boolean;
1313
conditionalWrapperProps?: HTMLProps<HTMLDivElement>;
14-
inputRef?: (inputRef: HTMLElement | null) => any;
14+
inputRef?: (inputRef: HTMLInputElement | null) => any;
1515
}
1616

1717
const Radio: React.FC<RadioProps> = ({

0 commit comments

Comments
 (0)