aboutsummaryrefslogtreecommitdiffstats
path: root/packages/forms/src
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-01-07 23:53:32 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-01-07 23:53:32 +0100
commit8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf (patch)
tree899a872633f8c87a7ebb067b40b1ff1369851527 /packages/forms/src
parentMerge (diff)
downloadferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.tar.gz
ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.tar.zst
ferdium-app-8fce9fb5ce8a91a0905730efcdbd61ad3fcad6bf.zip
wip
Diffstat (limited to 'packages/forms/src')
-rw-r--r--packages/forms/src/index.ts6
-rw-r--r--packages/forms/src/input/index.tsx4
2 files changed, 8 insertions, 2 deletions
diff --git a/packages/forms/src/index.ts b/packages/forms/src/index.ts
index 3f24ecaf7..fe6f09222 100644
--- a/packages/forms/src/index.ts
+++ b/packages/forms/src/index.ts
@@ -1 +1,7 @@
1export { default as Input } from './input'; 1export { default as Input } from './input';
2
3// import InputComponent from './input';
4
5console.log('YOLOOOOO00OO', 'InputComponent');
6
7// export const Input = InputComponent;
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;