This commit is contained in:
Michael Dähnert
2018-07-18 10:46:29 +02:00
parent 29f54d6d52
commit 428a0f209d
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export class Dropdown extends React.Component<DropdownProps, DropdownState> {
position: 'bottom'
};
containerRef: HTMLDivElement | null;
containerRef!: HTMLDivElement | null;
clickInside = false;
switch = () => {
+1 -1
View File
@@ -21,7 +21,7 @@ export class Overlay extends React.Component<OverlayProps, OverlayState> {
position: ''
};
overlayRef: Element | null;
overlayRef!: Element | null;
alignToElement = () => {
if (this.overlayRef) {
+1 -1
View File
@@ -22,7 +22,7 @@ export interface TextFieldProps {
}
export class TextField extends React.Component<TextFieldProps, {}> {
inputRef: HTMLInputElement | null;
inputRef!: HTMLInputElement | null;
componentDidMount() {
if (this.props.autoFocus && this.inputRef !== null) {
+1 -1
View File
@@ -10,7 +10,7 @@ export interface TextFieldContentEditableProps {
}
export class TextFieldContentEditable extends React.Component<TextFieldContentEditableProps> {
element: HTMLDivElement | null;
element!: HTMLDivElement | null;
handleChange = () => {
if (this.element) {