Skip to content

Conversation

johngwilkinson
Copy link

...etimes

Attempts to fix #15

This breaks the unit test it('should route to the first entry in tabConfiguration array by default'...) but the my app and the example app both appear to work correctly with the change. I'm not sure how to fix the test: it seems events fire differently in a regular browser?

@rpocklin
Copy link
Owner

Can you please take a look at the latest in tab-in-index-page branch - i've added an option for this use case which should keep the existing behaviour for other cases. Look at README.md for an explanation of auto-select-default-tab.

If you're happy with this it'll get into master and released.

@johngwilkinson
Copy link
Author

Looks good to me!

@rpocklin
Copy link
Owner

Ok i've changed my approach - i've removed the default route change code entirely. If people want to deep-link they can link directly to the tab-selected routes.

Landed with v1.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants