Skip to content

Commit

Permalink
fix: base error
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Jun 7, 2018
1 parent 0932a27 commit 6caf559
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ export default class Resizable extends React.Component<ResizableProps, State> {
for (let i = 0; i < children.length; i += 1) {
const n = children[i];
if (n instanceof HTMLElement) {
return n.classList.contains(baseClassName);
if (n.classList.contains(baseClassName)) {
return n;
}
}
}
return undefined;
Expand Down

0 comments on commit 6caf559

Please sign in to comment.