Skip to content

Commit

Permalink
Fixes broken createRef without React.
Browse files Browse the repository at this point in the history
  • Loading branch information
thedanheller committed Apr 8, 2021
1 parent f87ba7b commit f3240b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/components/Input.js
Expand Up @@ -61,7 +61,7 @@ class InputBase extends Component<InputProps, State> {

constructor(props: InputProps) {
super(props);
this.inputElement = props.inputRef ?? createRef();
this.inputElement = props.inputRef ?? React.createRef();
const { context, themeId, theme, themeOverrides } = props;

this.state = {
Expand Down

0 comments on commit f3240b1

Please sign in to comment.