-
Notifications
You must be signed in to change notification settings - Fork 404
Upgrade react-popper version to 2.x #549
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
Comments
Thanks for opening this issue @dleavitt. The two items you mention are essentially the same, since I suppose I could upgrade Any additional thoughts? |
Thanks for the background and that link! Comparing the package.json files was about as far as I got, but happy to look into this further if you're interested. The react-bootstrap fix looks a little involved. Maybe it could be reused here. |
|
Just bumped into this, as I'm using modern react-bootstrap (with popper 2) and would like to add this to my project, ideally with a shared popper via shared NPM dependency. Fixing this in react-bootstrap indeed looks messy, but that's because |
@edemaine: thanks for providing your perspective. Part of the problem here is that, like React-Bootstrap, the typeahead relies on TWBS's CSS and that has margin styles defined. I could just update the Popper version; as the Popper author points out in the thread I linked above, library simply triggers warnings, not errors, and apparently TWBS v5 (currently in beta) will support Popper v2. OTOH, people tend to freak out about warnings and I'll probably want to support TWBS v4 for awhile even after v5 lands (if possible). |
Ah, I see now, thanks. Indeed, so you pretty much have the general case of CSS out of your control. 🙁 It would be nice if it were possible to use React-Bootstrap's Perhaps a somewhat more reasonable approach would be to have a Alternatively, React Bootstrap's workaround isn't looking so bad 🙂 -- it's just a query to the formatted margin. (and FWIW, I decided to use this package in my project now anyway -- it's too good not to use!) |
With the new way that NPM v7 resolves peerDependecies, |
Updated in v6.0.0-alpha.4 |
This lib isn't affiliated with
react-bootstrap
but it does share a number of dependencies and will likely be used on a lot of the same projects. A couple of those dependencies use older versions right now (so e.g. a project using both libs will end up bundling two versions of popper.)The major version bump for 5.0 seems like a good time to update these deps. I think only two changes are required:
react-overlays
dep to 3.xreact-popper
dep or bump to 2.xThe text was updated successfully, but these errors were encountered: