skratchdot / react-bootstrap-multiselect

A multiselect component for react (with bootstrap). This is a react port of bootstrap-multiselect.
http://projects.skratchdot.com/react-bootstrap-multiselect/
Other
119 stars 62 forks source link

Not compatible with react-bootstrap #93

Open 3atharvkurdukar opened 3 years ago

3atharvkurdukar commented 3 years ago

I am currently using react-bootstrap and came across this package because it lacks the functionality to select multiple inputs. The react-bootstrap library works using native JavaScript instead of popper.js, but once I import this library, it asks for popper.js library. I am getting following error:

./node_modules/bootstrap/dist/js/bootstrap.js
Module not found: Can't resolve 'popper.js' in 'C:\Users\3atha\code\mahashweta-foundation\node_modules\bootstrap\dist\js'

How do I implement popper.js such that it won't mess with native JavaScript? I already tried using CDN script tag, but it didn't work.

mathvav commented 3 years ago

Looks like this project is abandoned... the last release was before the release of Bootstrap 4 stable, so it's more than likely that it won't work even if you can get past this error

3atharvkurdukar commented 3 years ago

@mathvav Can you please suggest me any better alternative? I recently used react-select, which is nice, but I liked the UI of react-bootstrap-select.

mathvav commented 3 years ago

@3atharvkurdukar unfortunately I'm in the same boat as you.

If you don't need groups of options, this looks like a good contender: https://www.npmjs.com/package/react-multiselect-dropdown-bootstrap

If you manage to find something else, let me know. I'm trying to find something that is just a dropdown (nothing too visually busy when the dropdown is closed) to no avail.

I briefly looked into forking this package and getting everything to work, but I don't have a ton of time this week, and I don't want to have to keep up with the maintenance of a fork.

3atharvkurdukar commented 3 years ago

Thanks, buddy! This is just what I needed. react-select is nice, but it lacked the simplicity. Most of the naïve users don't understand tags. Thanks for the help.

mathvav commented 3 years ago

@3atharvkurdukar glad I could help—let me know if it works for you, since I've not gotten around to using it!