-
Notifications
You must be signed in to change notification settings - Fork 163
[changed] Replace everything with LinkContainer #115
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
Conversation
My intent would be to release this as v0.19.0. This will allow us to close almost all the current open issues. |
Very nice 👍 |
I love this. one thought. maybe we add a trigger prop that defaults to onClick? then the user can wrap stuff that triggers other events? cough menuitem |
You mean for e.g. Do you think it makes more sense to do that than to just have |
This looks really great! Should we consider renaming the project now that it's not specific to react-bootstrap? |
That's where I started - it's a little bit specific to React-Bootstrap, though. The |
Gotcha! |
I do, I was just thinking a little of both. More important to just fix the MenuItem tho. To the signature thing onSelect should provide the event first, so the preventDefault would work in that specific case. I know b/c thats what we are doing as of like 3 days ago :P |
I'm a little hesitant to do that, though, because the I think I'd rather we just fix Are we okay with releasing this? |
LGTM for reference tho I meant something more like:
|
Makes sense - could come in handy in case those use cases come up. |
[changed] Replace everything with LinkContainer
It's painful and annoying to have to make a custom
Link
component for every component we want to use.This replaces everything with a
LinkContainer
component that can wrap any React-Bootstrap component (and potentially plenty of others as well).This is also targeted against React Router v1.0.0-rc1.
As part of this, I've stripped out a number of the visual tests that were trivial/pointless (pagination and thumbnails) or wrong (the dropdown, where normal menu items ignore the injected
onClick
prop).