Skip to content

Default tab fix #405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 13, 2020
Merged

Default tab fix #405

merged 3 commits into from
Jun 13, 2020

Conversation

tcbegley
Copy link
Collaborator

When using Tabs, if active_tab is initially unspecified the first tab is chosen for you as the default active tab. Previously however the active_tab prop was not updated to this default value, leading to an issue when using callbacks to dynamically render tab content. This PR adds a call to setProps on initialisation to make sure everything stays in sync.

It also updates the graphs_in_tabs example to ensure dictionaries are not passed to the children of a component.

Closes #404

@tcbegley tcbegley merged commit 799804d into master Jun 13, 2020
@tcbegley tcbegley deleted the default-tab-fix branch June 13, 2020 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Error when running graphs_in_tabs.py
1 participant