Skip to content

Commit 110a7d4

Browse files
authored
Merge pull request #293 from Andarist/patch-2
Fix isForwardRef call
2 parents 11cab22 + 5785f56 commit 110a7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/waypoint.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export class Waypoint extends React.PureComponent {
295295
return <span ref={this.refElement} style={{ fontSize: 0 }} />;
296296
}
297297

298-
if (isDOMElement(children) || isForwardRef(children.type)) {
298+
if (isDOMElement(children) || isForwardRef(children)) {
299299
const ref = (node) => {
300300
this.refElement(node);
301301
if (children.ref) {

0 commit comments

Comments
 (0)