Skip to content

Commit 1bff486

Browse files
committed
fix getPopupDomNode
1 parent 0ba9f9a commit 1bff486

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Trigger.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ const Trigger = React.createClass({
222222

223223
getPopupDomNode() {
224224
// for test
225-
return this.popupInstance.isMounted() ? this.popupInstance.getPopupDomNode() : null;
225+
if (this.popupInstance) {
226+
return this.popupInstance.isMounted() ? this.popupInstance.getPopupDomNode() : null;
227+
}
228+
return null;
226229
},
227230

228231
getRootDomNode() {

0 commit comments

Comments
 (0)