Skip to content

Commit 2fa32d0

Browse files
authored
Merge pull request #20 from ddcat1115/fix-getPopupDomNode
fix getPopupDomNode
2 parents 0ba9f9a + 1bff486 commit 2fa32d0

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)