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

reset tabActive after an async action dispatched #57

Open
MattyChance opened this issue Oct 10, 2017 · 0 comments
Open

reset tabActive after an async action dispatched #57

MattyChance opened this issue Oct 10, 2017 · 0 comments

Comments

@MattyChance
Copy link

MattyChance commented Oct 10, 2017

Hi I am still learning react and redux so sincere apologies in advance if it's something obvious I could not figure out.

I am using simpletabs to render few different components. One of these components could take users to forms where users can submit information. My question is how I can reset tabActive after the form action dispatched successfully instead that it's always the first tab that's open? Thank you.

inside AdminPanelContainer, there are the tabs
... <Route path="/admin/:username" component={AdminPanelContainer} />
this is the route where users will be taken to inside of the children component rendered under AdminPanelContainer
... <Route path="/admin/:username/trailsections/:trailsectionId component={TrailsectionFormContainer} /> ...

inside AdminPanelContainer: TrailsectionArea will render TrailsectionFormContainer
<Tabs.Panel title={"Trailsection"}> <TrailsectionArea sitePath={location.pathname}/> </Tabs.Panel>

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

No branches or pull requests

1 participant