Skip to content

Commit 5785f56

Browse files
authored
Fix isForwardRef call
1 parent 11cab22 commit 5785f56

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)