Skip to content

Default tab fix#405

Merged
tcbegley merged 3 commits intomasterfrom
default-tab-fix
Jun 13, 2020
Merged

Default tab fix#405
tcbegley merged 3 commits intomasterfrom
default-tab-fix

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

1 participant