Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Handle disabled components #36

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

Merged
mtscout6 merged 2 commits into react-bootstrap:master from merk:patch-1
May 7, 2015
Merged

Conversation

Copy link
Contributor

@merk merk commented Apr 9, 2015

I'm not totally sure if this is appropriate, however I've been encountering issues where a disabled Nav item will still transition to the supplied route even though it is disabled.

Copy link
Contributor Author

merk commented Apr 9, 2015

I havent been able to work out how to use the test libraries to test that something wont occur. I've tried to duplicate the test that confirms a route transition occurs, but becuse when the button is disabled such a transition occurs, the second step doesnt apply and done() isnt called.

Any guidance would be appreciated on how to approach this.

Copy link
Member

dozoisch commented May 2, 2015

@mtscout6 this looks good to me, what do you think?

Copy link
Member

mtscout6 commented May 2, 2015

Looks good to me as well. I'm on my phone though and can't merge right now.

On Sat, May 2, 2015, 14:46 Hugo Dozois notifications@github.com wrote:

@mtscout6 https://github.com/mtscout6 this looks good to me, what do
you think?


Reply to this email directly or view it on GitHub
https://github.com/mtscout6/react-router-bootstrap/pull/36#issuecomment-98398511
.

Copy link
Member

dozoisch commented May 2, 2015

@mtscout6 I need to test a thing though, I'm not sure it's going to work properly since the event is not defaultPrevented

Copy link
Member

mtscout6 commented May 7, 2015

@dozoisch Were you able to test this out?

Copy link
Member

dozoisch commented May 7, 2015

@mtscout6 Ill try to find some time hehe ! time is pretty good at Hide and Seek

Copy link
Contributor Author

merk commented May 7, 2015

I spent a bit of time looking into how to test it, and came up with the commit I just pushed. Let me know if its suitable or not. I still dont know enough about mocha/karma/javascript testing to be certain this test covers what is necessary.

Copy link
Member

AlexKVal commented May 7, 2015

Usually such testing are done by Sinon spy functionality,
but it seems this not throw error-approach would do 👍

mtscout6 added a commit that referenced this pull request May 7, 2015
@mtscout6 mtscout6 merged commit 90ee028 into react-bootstrap:master May 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /