Skip to content
Snippets Groups Projects
Commit e72bf4de authored by valzav's avatar valzav
Browse files

fix FoundationDropdown issue

parent 3a69b410
No related branches found
No related tags found
No related merge requests found
...@@ -34,11 +34,12 @@ export default class FoundationDropdown extends React.Component { ...@@ -34,11 +34,12 @@ export default class FoundationDropdown extends React.Component {
closeOnOutsideClick(e) { closeOnOutsideClick(e) {
const inside_dropdown = findParent(e.target, 'FoundationDropdown'); const inside_dropdown = findParent(e.target, 'FoundationDropdown');
console.log('-- closeOnOutsideClick -->', e.target, inside_dropdown);
if (!inside_dropdown) this.setState({show: false}); if (!inside_dropdown) this.setState({show: false});
}; };
render() { render() {
if (!this.state.show) return null; if (!this.state.show) return null;
return <Dropdown>{this.props.children}</Dropdown>; return <Dropdown className="FoundationDropdown">{this.props.children}</Dropdown>;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment