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

history error #25

Open
janat08 opened this issue May 4, 2018 · 3 comments
Open

history error #25

janat08 opened this issue May 4, 2018 · 3 comments

Comments

@janat08
Copy link

janat08 commented May 4, 2018

tries to access state.history.params, and while it's defined before and after the access, it will fail if there's another router being used.

typeNX.js:2385 Uncaught TypeError: Cannot read property 'params' of null
    at syncStatesWithParams (typeNX.js:2385)
    at eval (typeNX.js:2352)
    at SmartWizard._setURLHash (/node_modules/smartwizard/dist/js/jquery.smartWizard.js:544)
    at SmartWizard._transitPage (/node_modules/smartwizard/dist/js/jquery.smartWizard.js:460)
    at SmartWizard._loadStepContent (/node_modules/smartwizard/dist/js/jquery.smartWizard.js:404)
    at SmartWizard._showStep (/node_modules/smartwizard/dist/js/jquery.smartWizard.js:354)
    at SmartWizard.init (/node_modules/smartwizard/dist/js/jquery.smartWizard.js:121)
    at new SmartWizard (/node_modules/smartwizard/dist/js/jquery.smartWizard.js:88)
    at HTMLDivElement.eval (/node_modules/smartwizard/dist/js/jquery.smartWizard.js:638)
    at Function.each (modules.js?hash=fa65c5222d37ccb63afe46b49c068a2095600027:6549)
@janat08
Copy link
Author

janat08 commented May 4, 2018

large reproduction, visit /addcoin route, and the code is in typeahead.js and located on 3 step for /addcoin form for exchanges field. Blockrazor/blockrazor@649b711 . The link doesn't point at actual commit where the bug begun.

@janat08
Copy link
Author

janat08 commented May 4, 2018

I'm not using route/router middlewears or ref.

@janat08
Copy link
Author

janat08 commented May 4, 2018

It even causes navigation bugs if another router begins overwriting history.

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