Skip to content

Commit 428a0f2

Browse files
committed
1 parent 29f54d6 commit 428a0f2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/components/Dropdown.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class Dropdown extends React.Component<DropdownProps, DropdownState> {
3030
position: 'bottom'
3131
};
3232

33-
containerRef: HTMLDivElement | null;
33+
containerRef!: HTMLDivElement | null;
3434
clickInside = false;
3535

3636
switch = () => {

src/components/Overlay.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class Overlay extends React.Component<OverlayProps, OverlayState> {
2121
position: ''
2222
};
2323

24-
overlayRef: Element | null;
24+
overlayRef!: Element | null;
2525

2626
alignToElement = () => {
2727
if (this.overlayRef) {

src/components/TextField.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface TextFieldProps {
2222
}
2323

2424
export class TextField extends React.Component<TextFieldProps, {}> {
25-
inputRef: HTMLInputElement | null;
25+
inputRef!: HTMLInputElement | null;
2626

2727
componentDidMount() {
2828
if (this.props.autoFocus && this.inputRef !== null) {

src/components/TextFieldContentEditable.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface TextFieldContentEditableProps {
1010
}
1111

1212
export class TextFieldContentEditable extends React.Component<TextFieldContentEditableProps> {
13-
element: HTMLDivElement | null;
13+
element!: HTMLDivElement | null;
1414

1515
handleChange = () => {
1616
if (this.element) {

0 commit comments

Comments
 (0)