Skip to content
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

EuiTabbedContent tab's contents are not updated when state changes #930

Closed
jgowdyelastic opened this issue Jun 15, 2018 · 1 comment
Closed
Labels

Comments

@jgowdyelastic
Copy link
Member

jgowdyelastic commented Jun 15, 2018

In this example of a tabs list which is used to draw a EuiTabbedContent component:

const { jobDescription } = this.state;
const tabs = [{
  id: 'job-details',
  name: 'Job details',
  content: <JobDetails
    jobDescription={jobDescription}
  />,
}, ....

If jobDescription changes, that change isn't propagated to the JobDetails component.

@jgowdyelastic jgowdyelastic changed the title EuiTabbedContent tabs contents are not updated when state changes EuiTabbedContent tab's contents are not updated when state changes Jun 15, 2018
@chandlerprall
Copy link
Contributor

@jgowdyelastic are you using the tabs as a controlled component? I can see a bug around content updating if not using as a controlled component, and if it is controlled there's another step you'll have to take.

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

No branches or pull requests

3 participants