-
Notifications
You must be signed in to change notification settings - Fork 775
bootstrap.js dependency #197
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
@frontsideair, thanks for this issue report, I almost forgot that we need Anyway, how do you add bootstrap dependency, use npm? or any idea to solve this problem |
At first I just included it in the HTML with a Anyway, if it's only used for the dropdown, it'll be easy and totally worth it to implement it with React. |
👍 so is it a good idea to bundle |
Today I was trying to remove jQuery dependency from our stack and stumbled upon this. I'll probably take some time tomorrow to implement dropdown functionality with React and send a PR. If I can't, we'll need to bundle |
@AllenFang I started working on implementing pagination dropdown functionality with React, but I need some way to handle clicking outside the dropdown to close it. |
https://github.com/Pomax/react-onclickoutside/blob/master/decorator.js is so little, I think its way better than jquery + bootstrap.js (my opinion ofc 👍 ) |
@frontsideair @staminaloops, I accept your suggestion, it's a good idea 👍 |
Why revert the commit? |
Because there's something missing, so still need to fix. Hope I can solve this in the near future, so just reopen it |
Sorry, I was supposed to do this but life's been hectic lately so I couldn't make time to do it. |
@frontsideair, that's fine, I'll do it :) |
You probably don't want the to have the react-bootstrap dependencies, but at least they have a great dropdown that could help solving this issue? https://react-bootstrap.github.io/components.html#btn-dropdowns https://github.com/react-bootstrap/react-bootstrap/blob/master/src/Dropdown.js I don't know about most other users, but I use react-bootstrap with my react-bootstrap-table, so having a dependency on react-bootstrap would not have any implications for me. Keep up the good work! |
@Gennon, thanks sharing, I've planned to tackle this issue on |
It would be great to have this depend on on |
HI @patrickgordon, you can check #497, I've planned to remove it in the future, hope I can solve this dependency issue. |
I noticed that we need
bootstrap.js
as a global runtime dependency as the pagination size dropdown functionality depends on adata-toggle
property which is provided by Bootstrap JS code. I'm considering moving that functionality to React as a way to remove this global dependency.If there is anyplace else using
bootstrap.js
that you can point out, I'll keep that in mind when doing that.The text was updated successfully, but these errors were encountered: