Skip to content

Commit f88db65

Browse files
committed
Modified src/index.tsx
1 parent 9930143 commit f88db65

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,16 @@ export class Popup extends React.Component<PopupProps, {}> {
9898
mask: (node: React.ReactInstance) => (this.maskInstance = node),
9999
};
100100

101-
getRootDOM(): Element | null {
102-
return findDOMNode(this.rootInstance) as Element | null;
101+
getRootDOM(): HTMLElement | null {
102+
return findDOMNode(this.rootInstance) as HTMLElement | null;
103103
}
104104

105-
getPopupDOM(): Element | null {
106-
return findDOMNode(this.popupInstance) as Element | null;
105+
getPopupDOM(): HTMLElement | null {
106+
return findDOMNode(this.popupInstance) as HTMLElement | null;
107107
}
108108

109-
getMaskDOM(): Element | null {
110-
return findDOMNode(this.maskInstance) as Element | null;
109+
getMaskDOM(): HTMLElement | null {
110+
return findDOMNode(this.maskInstance) as HTMLElement | null;
111111
}
112112

113113
shouldComponentUpdate(nextProps: PopupProps) {

0 commit comments

Comments
 (0)