Skip to content

Commit b4d8013

Browse files
committed
Fix wrong condition never resolving true
1 parent 05f1616 commit b4d8013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/PlaceholderWithoutTracking.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class PlaceholderWithoutTracking extends React.Component {
6060
render() {
6161
const { className, height, placeholder, style, width } = this.props;
6262

63-
if (placeholder && placeholder.hasOwnProperty('getBoundingClientRect')) {
63+
if (placeholder && typeof placeholder.type !== 'function') {
6464
return React.cloneElement(placeholder,
6565
{ ref: el => this.placeholder = el });
6666
}

0 commit comments

Comments
 (0)