diff options
Diffstat (limited to 'packages/forms/src/input')
-rw-r--r-- | packages/forms/src/input/index.tsx | 4 |
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'; | |||
3 | import classnames from 'classnames'; | 3 | import classnames from 'classnames'; |
4 | import pick from 'lodash/pick'; | 4 | import pick from 'lodash/pick'; |
5 | import { observer } from 'mobx-react'; | 5 | import { observer } from 'mobx-react'; |
6 | import React, { Component } from 'react'; | 6 | import React, { Component, createRef } from 'react'; |
7 | import htmlElementAttributes from 'react-html-attributes'; | 7 | import htmlElementAttributes from 'react-html-attributes'; |
8 | import injectSheet from 'react-jss'; | 8 | import 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; |