Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

console.log in dcc.Tabs #300

Closed
T4rk1n opened this issue Sep 12, 2018 · 0 comments · Fixed by #306
Closed

console.log in dcc.Tabs #300

T4rk1n opened this issue Sep 12, 2018 · 0 comments · Fixed by #306

Comments

@T4rk1n
Copy link
Contributor

T4rk1n commented Sep 12, 2018

There is console log in the Tabs component render, it should be removed.

window.console.log('this.props.children', this.props.children);
EnhancedTabs = this.props.children.map((child, index) => {
// TODO: handle components that are not dcc.Tab components (throw error)
// enhance Tab components coming from Dash (as dcc.Tab) with methods needed for handling logic
let childProps;
window.console.log('child', child);
if (child.props.children) {
// if props appears on .children, props are coming from Dash
childProps = child.props.children.props;
} else {
// else props are coming from React (Demo.react.js)
window.console.log('child props', child.props);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant