aboutsummaryrefslogtreecommitdiffstats
path: root/packages/forms/src/input/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/forms/src/input/index.tsx')
-rw-r--r--packages/forms/src/input/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/forms/src/input/index.tsx b/packages/forms/src/input/index.tsx
index 107335573..0e19e3368 100644
--- a/packages/forms/src/input/index.tsx
+++ b/packages/forms/src/input/index.tsx
@@ -3,7 +3,7 @@ import Icon from '@mdi/react';
3import classnames from 'classnames'; 3import classnames from 'classnames';
4import pick from 'lodash/pick'; 4import pick from 'lodash/pick';
5import { observer } from 'mobx-react'; 5import { observer } from 'mobx-react';
6import React, { Component } from 'react'; 6import React, { Component, createRef } from 'react';
7import htmlElementAttributes from 'react-html-attributes'; 7import htmlElementAttributes from 'react-html-attributes';
8import injectSheet from 'react-jss'; 8import injectSheet from 'react-jss';
9 9
@@ -48,7 +48,7 @@ class Input extends Component<IProps, IState> {
48 showPassword: false, 48 showPassword: false,
49 }; 49 };
50 50
51 private inputRef = React.createRef<HTMLInputElement>(); 51 private inputRef = createRef<HTMLInputElement>();
52 52
53 componentDidMount() { 53 componentDidMount() {
54 const { focus } = this.props; 54 const { focus } = this.props;