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

Navigation problem after route #9

Open
TavenCFC opened this issue Nov 29, 2018 · 3 comments
Open

Navigation problem after route #9

TavenCFC opened this issue Nov 29, 2018 · 3 comments

Comments

@TavenCFC
Copy link

TavenCFC commented Nov 29, 2018

Hello! I have a problem with navigation, after route from one component to another.
After my app has loaded, I do an authorization check, then I route to another component.

componentWillMount() { this.props.Auth().then(() => { if (this.props.needSignUp) { this.props.history.push({pathname: '/signup/'}) } }) }

In the signup component, I have an Focusable elements

<div> <Focusable>Button-1</Focusable> <Focusable>Button-2</Focusable> </div>

When I trying to navigate this element, I get an error:

index.js:952 Uncaught TypeError: Cannot read property 'getNextFocusFrom' of undefined at Navigation.focusNext (index.js:952) at Navigation._this.onKeyDown (index.js:917)

What could be the reason?

@TavenCFC
Copy link
Author

Also, if I just open the signup component, without route, the navigation works.

@pahonski
Copy link

I have the same problem. Have you checked resolve?

@dead
Copy link
Owner

dead commented Mar 18, 2019

Can you guys give me an example in http://codesandbox.io?

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

3 participants